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
0 answers

Can Codename One BrowserComponent show WebGL?

A premise, in case it makes any difference: I've deleted the CEF folder, since with it the BrowserComponent didn't work for me, and installed the ZuluFX Java 1.8 (with later versions, like ZuluFX 1.11, BrowserComponent didn't work either; this, on a…
DrHell
  • 461
  • 3
  • 17
1
vote
1 answer

CodenameOne: PropertyIndex.toJSON() not generating correct JSON for Lists of Objects

I have a mobile app where a user fills out a form, say an Event, and when they save I want to submit the data as JSON to the server. CN1 has the feature to generate JSON easily using PropertyBusinessObject so my Event is defined as follows: public…
1
vote
1 answer

Keep Codename One updated

I didn't understand if to keep Codename One up to date, so that the local code matches the one on the build servers, I always have to manually remind myself to right click on the project, then on "Run Maven" -> "Update Codename One" (in Netbeans) or…
Francesco Galgani
  • 6,137
  • 3
  • 20
  • 23
1
vote
0 answers

Codename One Location Simulator

Since the Location Simulator is not currently usable (https://github.com/codenameone/CodenameOne/issues/3425 & https://github.com/codenameone/CodenameOne/issues/3173), is there any way to insert the latitude and longitude that I need to simulate? I…
Francesco Galgani
  • 6,137
  • 3
  • 20
  • 23
1
vote
1 answer

Maven: How to manage test code module dependencies

We've migrated an ant project (codename one) to a maven project which happened through a migration tool. Unfortunately there is still a problem. Somehow, the test source directory (set via testSourceDirectory in pom.xml) becomes part of the wrong…
Osman
  • 571
  • 7
  • 19
1
vote
0 answers

AppArg property is cached (iOS simulator) and is presented anew

My CN1 iOS app can respond to the user selecting files with a custom extension. This kind of code is used: String arg=Display.getInstance().getProperty("AppArg",null); inside the start() method. The method is correctly called, and the AppArg…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
0 answers

CodenameOne issue handling mouse events on iOS 12 and 13 in BrowserComponent

I am testing my CodenameOne app on the iOS simulator. It is good practice to test on the main iOS versions. My app has a BrowserComponent as main interface, where a list of Frames is displayed. Text inside the frames is not selectable. This is…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
0 answers

AppArg files not copied in the ...../Documents/Inbox folder (iOS simulator) when selected or drag/dropped

I am testing a CodenameOne app in the iOS simulator. The app can manage files with a custom extension, it can import/export them through the "private" Documents folder, that is exposed to the Files app and iTunes. This feature works. The file path…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
1 answer

Codenameone Image 24 Bit PNG

i have a question to work with pictures in Codenameone (my Code works,I just want to ask if there is a better way) (don't really know how to call the title because it's really specific) at the end i want to get a 24Bit non compressed image (so i…
1
vote
1 answer

UTFDataFormatException - encoded string too long

In my mobile app I have an object implementing PropertyBusinessObject which contains numerous other objects also implementing this interface. This object structure is populated by JSON data I am getting back from my server. When I try to write this…
1
vote
0 answers

Callback Function from Server in Codename one iOS build

Callback functions from server works perfectly android devices but do not work on iOS devices. Please can you help me with this issue Thank you
EmmaWedi
  • 61
  • 3
1
vote
1 answer

How to delete all components in a form on Codenameone?

I am writing a program in Codenameone that will pull an array of products from a url and display them in a list. I want to reload the page every time I press a button, so I code in a method called reload that should delete everything in the form and…
gumbapp
  • 25
  • 3
1
vote
1 answer

adding 'use_frameworks!' in podfile

How to add this hint use_frameworks! in Codename One propertie's build hint? Anyone can help me with this issue? Thanks in advance.
youshail
  • 69
  • 4
1
vote
1 answer

Codename One Android Build Error - permission#com.android.vending.BILLING

When I'm trying to do an Android build, it's giving me this error: Merging result: ERROR /tmp/build6250103586261222869xxx/MyApplication/src/main/AndroidManifest.xml:57:3-64 Error: Element uses-permission#com.android.vending.BILLING at…
1
vote
1 answer

Class not found while generating the GUI sources java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/model/annotation/AnnotationReader [Codenameone]

Im using eclipse 2021-3 ( detailed version below), and after updating my form in GUIBuilder I noticed the initGuiBuilderComponents java method in the form class was empty but the .gui file had the components declared. The stack trace I got after…
Jorge
  • 19
  • 3