Questions tagged [codenameone]

Codename One is an open source Write Once Run Anywhere Mobile Development Platform that allows Java and Kotlin developers to build native (iOS/Android/Windows Phone etc.) applications.

Codename One is a Write Once Run Anywhere (WORA) tool for application development that uses the Java language with a subset of its API and/or Kotlin to build native iOS (iPhone), Android, Windows (UWP), etc. applications.

It's an open source tool that integrates with all major IDE's.

To remove the need for a Mac/Windows machine (when building for iOS/Windows) Codename One uses the cloud to build native apps. It hosts Mac/Linux/Windows machines in the cloud and when a device deployment is needed the binary JAR file is sent to the cloud where it's translated to native code (C/Objective-C, C#, etc.), compiled, signed and delivered directly to the device. You can learn more about this process and how it works via this question.

Codename One also provides the ability to build for devices without the cloud servers (offline build).

4859 questions
1
vote
1 answer

CSV Parsing Database Values CodeNameOne

GOAL: Realize a CSV Parsing, the code in the documentation works. But I want to edit it. In fact, I want to parse the values of a table called "Concert" I have in my database. public class Excel extends BaseForm{ public Excel() throws…
Compte Gmail
  • 137
  • 3
  • 8
1
vote
0 answers

Local Notification NOT SHOWING CodeNameOne

I'm a CodeNameOne beginner. I'm trying to make a local notification, it doesn't seem to work,I don't get anything displayed. here's the start function. Is there anything missing? Should I add variables in the build settings? public void start()…
Compte Gmail
  • 137
  • 3
  • 8
1
vote
1 answer

Codename One How can i resize the BrowserComponent?

I tried using browser component.set width/height and its not working, the component is extremely small to the point where its not visible, I only tested it by clicking on it and hearing audio. BrowserComponent browser = new BrowserComponent(); …
bachq22
  • 21
  • 2
1
vote
1 answer

CodenameOne - Using 1x 2x 3x images of XCode Assets.Casset catalog in CN1 project

My CodenameOne app needs customized icons for some buttons. Images have to be used. The iOS version of my app was duly provided of those images in 1x 2x 3x formats. It seems that the multi-image system of CN1 would beneficiate of the image resources…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
1 answer

How to play mp3 directory files in CodeNameOne?

I'm recently starting with codenameone and I'm working on a music player app. I want to get the musics from a folder. I found out in the documentation a code about "Audio Capture & Recording". But what I'm looking for is to just play audios from a…
Compte Gmail
  • 137
  • 3
  • 8
1
vote
1 answer

Capture.captureAudio() within a modal dialog on Android 8+ does not return until dispose of dialog

I instantiate a modal dialog and have a button that executes Capture.captureAudio() On Android 8+ running on Samsung TAB S5e and Galaxy Tab A8 devices, Tapping the button opens the recording dialog as expected, however when tap "Save" we don't get…
Mark Bolduc
  • 165
  • 4
1
vote
1 answer

CodenameOne - accessing images from nested folder hierarchy in app bundled resources

My CodenameOne app needs that some buttons have special icons. ScaleImageButton is the component that is suitable. The icons to be used are from the material icons repository, but some are modified, so the CN font is not suitable. I created the icon…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
1 answer

Media.getDuration() for Video always returns 0

I am looking for the duration of a Video just recorded. Code: String file = Capture.captureVideo(); Media m = MediaManager.createMedia(file, true); m.getDuration(); returns 0 on (PC, IOS, Android) Thoughts?
Mark Bolduc
  • 165
  • 4
1
vote
1 answer

FileChooser on iOS is not opening file (picture)

I noticed when I use a FileChooser class in order to get an image, it works on Android but not on iOS. I suppose it might be happening because of different work of filepath or special permissions for iOS. Any ideas/suggestions? Thank you. Here is my…
fnklstn
  • 492
  • 4
  • 16
1
vote
1 answer

CodenameOne - filesystem access problems on iOS for Library folder

My CodenameOne app is being tested on the iOS simulator (iPad 8th iOS 14). It writes some files in the private folder by means of this method: public void writeFile() throws IOException { try(OutputStream os =…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
1 answer

javax.sound.sampled.LineUnavailableException In CodeNameOne

I have got this Voice Recording code from CodeNameOne's official website, here's the code. ({https://pastebin.com/FsLmMK2b}) When I record my voice for the 1st time, everything seems fine and I can hear a playback of it but when I try to record for…
Compte Gmail
  • 137
  • 3
  • 8
1
vote
1 answer

can't use create CEF browser from codename one

My app is failing to run the BrowserComponent everytime I try to call it inside codename one. It gives me an error of failure to create CEF browser. Everything beside that is running just fine. I uninstalled and installed CEF as instructed in this…
Kagha
  • 11
  • 1
1
vote
1 answer

Active developer path (\"/Applications/Xcode10.1.app/Contents/Developer\") does not exist

I have an issue when I try to build the application IOS to CodenameOne Server, I get this error : Failed to extract git version from git --version ("xcrun: error: active developer path ("/Applications/Xcode10.1.app/Contents/Developer") does not…
youshail
  • 69
  • 4
1
vote
1 answer

new File("full_path_file_name).lastModified()) returns 0 on IOS 14.4.2

I display the Last Modified Date of a File on storage. I use new Date(new File("full_path_file_name).lastModified())) On IOS Only, it returns "Wed Dec 31, 1969 07:00PM" (Close to Unix epoch Time) Android and PC behave correctly. Thoughts? Turns out…
Mark Bolduc
  • 165
  • 4
1
vote
0 answers

Codenameone Simulator in Intellij Community Edition drops network at random

I am building an app with Codenameone using IntelliJ community edition on Mac running MacOS Big Sur . OF recent, when I am testing with the simulator, the network connection drops at random with a streams closed error message. I am lost for ideas on…
user1622343
  • 967
  • 5
  • 9
1 2 3
99
100