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

CodenameOne - Getting the text size inside TextViews or TextAreas

My CodenameOne app has a BrowserComponent in the layout (it's a WebView). It has also other components like TextFields. I need that the text in the BrowserComponent has the same size as the text in the TextFields (default value). I set the text size…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
0 answers

How to calculate time difference in milliseconds

I am trying to figure out how to calculate the time difference between two dates in milliseconds. I found this piece of code (https://stackoverflow.com/a/39129969/8921111) from another cn1 question, but when I send an Android build, I receive error…
fnklstn
  • 492
  • 4
  • 16
1
vote
1 answer

How can I build a local JavaSE build that uses CEF and not JavaFX?

In the Simulator, CEF is correctly used, but I noticed that local JavaSE builds use JavaFX. Can CEF be used in local JavaSE builds? My main Stub class already contains the…
JAnton
  • 1,095
  • 8
  • 16
1
vote
0 answers

CodenameOne - Build hint with injected plist values for XCode does not make it through the build process

I am using CodenameOne to have the iOS<14 counterpart of my Android and my Swift iOS 14 apps. In the CodenameOne build system I put the following injection of plist values: UTExportedTypeDeclarations
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
1 answer

CodenameOne - Sharing/importing files through the 'Documents' app folder

My Android app is also being developed for iOS. For iOS versions <14 I am using a cross-platform tool, called CodenameOne. For cross-platform's sake it has limitations, of course. I am trying to accomplish a simple import/export feature. My app can…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
0 answers

Sending any Android build shows build error server response code 401

I see an error server returned http response code 401 whenever I try to send Android build for any project. I have even tried to send an unchanged version of the KitchenSink demo. I'm assuming I am missing an update of some kind. Below is the…
James N
  • 435
  • 3
  • 8
1
vote
1 answer

Codename One paint fails because of concurrent manipulation of ArrayList

During automatic testing of my app in the simulator, occasionally (and quite rarely) I get errors like this: [EDT] 0:24:35,723 - Exception: java.lang.IndexOutOfBoundsException - Index: 12, Size: 13 [EDT] 0:24:35,725 - Exception in MyApp version…
J-J
  • 419
  • 2
  • 12
1
vote
0 answers

EncodedImage failing to work on actual phone

I am facing a problem while using encodedImage. When a user logins into the app, the first form after successful login has an image. And the image is causing me issues upon retrieving it. When the user captures an image in the app, I convert it to a…
Richard Matovu
  • 501
  • 4
  • 15
1
vote
1 answer

Codename One sound Media.play() memory leak?

My app uses some short sounds for user feedback. I use the following code: private void playSound(String fileName) { try { FileSystemStorage fss = FileSystemStorage.getInstance(); String sep = fss.getFileSystemSeparator() + ""; …
J-J
  • 419
  • 2
  • 12
1
vote
1 answer

Codenameone how to search in list of containers?

Ive created an arraylist of movies and using a loop I've given each movie a new containers so im displaying a list of containers with all the movies in my database, can I possible search for a single movie dynamically using something like…
bachq22
  • 21
  • 2
1
vote
1 answer

Problems in Netbeans when switching from Ant to Maven

After passing a complex Codename One project from Ant to Maven with the appropriate tool (https://www.codenameone.com/blog/migrating-your-project-to-maven.html), in Netbeans 12.3 I have two problems: when in the log there is the stack trace of a…
Francesco Galgani
  • 6,137
  • 3
  • 20
  • 23
1
vote
1 answer

CodenameOne - Importing set of images in the theme

My CodenameOne app is mainly intended to be the iOS counterpart of an existing Android app. It is for older devices, in fact, as soon as possible, or in the future, a Swift app is going to replace it for OS 14>. I need some customised icons and I…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
0 answers

Getting database values CODENAME ONE

I have an intermediate table that gets information from two other tables from the database (it gets their id), I'd like to show information of the other tables through that intermediate table in each of the others but it show me all of the…
Lelithya
  • 55
  • 6
1
vote
1 answer

Control character error, possibly incorrectly encoded

I'm working on Mobile application with codenameone linked to symfony 4, user can participate to contest of videos i have this tables users,participation,video,concour everything is working very well but when i try to participate it brings me all the…
nazzlire
  • 57
  • 8
1
vote
1 answer

CodenameOne - routine to read text file does work on CN1 simulator, does not work on iOS

I am testing my CodenameOne app on iOS and I have troubles with this method: public void readFile() { JSONText=new String(); InputStream is = null; try { is =…
P5music
  • 3,197
  • 2
  • 32
  • 81