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
50
votes
2 answers

How does Codename One work?

I'm prospecting alternatives to develop for multiple mobile platforms, and have found Codename One, that uses Java as lingua franca, instead of HTML/CSS/JS or scripting languages. What I couldn't find is how does it work. Does it bundle a JVM with…
Bruno Kim
  • 2,300
  • 4
  • 17
  • 27
25
votes
3 answers

java.net.ConnectException: fail to connect to localhost/127.0.0.1(port 8080): connect failed:ECONNREFUSED….(Codename One App)

After building an android application, I scanned the generated QRcode and install the application on galaxy s4 successfully. But when I try to do some search using the app I got the following exception: "java.net.ConnectException: fail to connect…
Yahya-Imam Munir
  • 451
  • 1
  • 5
  • 8
16
votes
7 answers

Google doc no preview available error

I used the google doc to display the pdf file in web broswer. It was working fine before. Now it gives no preview available. Most of the time it gives the blank screen with no preview available but sometime it opens the pdf. However i noticed that…
beck
  • 2,967
  • 3
  • 16
  • 27
11
votes
3 answers

ERROR ITMS-90168: "The binary you uploaded was invalid."

ERROR ITMS-90168: "The binary you uploaded was invalid. "The resulting API analysis file is too large. We were unable to validate your API prior to delivery I got the above error each time I want to upload the new version of my app to iTunes…
bispope
  • 165
  • 1
  • 1
  • 8
11
votes
2 answers

Error When building a large Codename One Application During the Dex Phase

I got an error in the build server when sending an Android build during the dex phase. Googling a bit I learned that there is a hard limit of 64K functions (including all libs, the heaviest is google play services), or you can use the multiple dex…
Derek Johnson
  • 812
  • 5
  • 6
8
votes
2 answers

Codenameone, Intel's multi-os-engine or Oracle's MAF?

Microsoft is discontinuing RoboVM and I am not even trying to figure out the hassle in companies and startups who have invested in this framework. I see three more JAVA cross platform mobile frameworks sitting out there: Intel's multi-os-engine…
ronline
  • 2,211
  • 1
  • 20
  • 27
8
votes
1 answer

Codename one push notifications with php issue

I've enabled push notifications in my app, added the build hints, registered the api on the play developer console, created and loaded the apple certificates on my server. When I test the app on a device it successfully registers for push…
7
votes
1 answer

Can I use Kotlin with Codename One?

I am a big fan of Kotlin and would like to use it with Codename One instead of Java. Since Kotlin interops seamlessly with Java am I able to use it to build an app with Codename One?
Graham
  • 5,488
  • 13
  • 57
  • 92
7
votes
1 answer

codename one app version number programmatically

I'm trying to get application version from the code at runtime how to get codename1.version from codenameone_settings.properties programmatically
Mahmoud Sabri
  • 713
  • 1
  • 7
  • 22
7
votes
1 answer

Can swift code be used in Codename One native code instead of Objective-C

I need to insert native code in my Codename One app. I am a completely newbie in iOS programming so I need to learn Objective-C. However I read that Swift was the successor of Objective-C and I would feel more comfortable with Swift syntax. But I…
HelloWorld
  • 2,275
  • 18
  • 29
7
votes
1 answer

codename one android intercepting urls issue

I am having a problem intercepting urls with android on codename one. I got it working fine for ios using the build hints ios.urlScheme and ios.plistInject. The build hint I used for android is: android.xintent_filter=
Kyri33
  • 599
  • 2
  • 15
7
votes
1 answer

Why is setColor so slow on Android

I'm benchmarking some of our code on an OPO device that's normally pretty fast and I'm seeing a lot of "weird" performance oddities. Before digging deeper into the Android native code I thought I'd ask here. What I'm seeing is that a call for…
Shai Almog
  • 51,749
  • 5
  • 35
  • 65
7
votes
1 answer

Saving an Image Locally in Codename One Project

I've followed the tutorial of creating a camera capture page in this video: http://www.youtube.com/watch?v=nF4eqzVcsic So my code at the moment looks like this: protected void onCamera_CaptureButtonAction(Component c, ActionEvent event) { String…
7
votes
2 answers

CodeNameOne Dynamically created Form, how to "Back"

In an actionListener for a button we would like to create a Form on the fly. Eg Something like Button b = new Button("Clickme"); b.setActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { Form f = new…
jamesarbrown
  • 243
  • 3
  • 7
6
votes
1 answer

Google Play recent review notification - APK HAS A PROMINENT DISCLOSURE BUT THE DISCLOSURE IS NOT ADEQUATE

We recently received a notification from the google play team stating "Action Required: Your app is not compliant with Google Play Policies". They state to resolve the changes within 7 days or the app will be removed from the google play store. See…
James N
  • 435
  • 3
  • 8
1
2 3
99 100