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

How to get CodenameOne Maven Project Running in Netbeans

Thx to Steve for the CN1 ant to maven migration tool and video here. - Has anyone been able to run the Kitchen Sink project in Netbeans after migration? I follow the video instructions with the migration tool and migrate successfully and it runs…
1
vote
1 answer

Eclipse send build to our old account after we change it

for technical reasons we need to change our codenameone account and all our proyects, we created the new account correctly, and on eclipse plugin we loging with the new account, (we had to reset our password in the old account). The problem is when…
Kandy
  • 387
  • 1
  • 13
1
vote
0 answers

How to sort ArrayList in Codenameone?

Please provide an example how to sort ArrayList? public static JSONArray sortJSONArrayAlphabetically(JSONArray jArray) throws JSONException { if (jArray != null) { // Sort: ArrayList arrayForSorting = new…
Duran k
  • 91
  • 6
1
vote
0 answers

Error creating style SignatureButtonBox. selected: false prefix: throws exception

Upon instansiation of SignatureComponent, SignatureComponent custSignature = new SignatureComponent(); Throws: [EDT] 0:1:21,183 - Error creating style SignatureButtonBox. selected: false prefix: java.lang.ClassCastException: java.lang.Integer…
Mark Bolduc
  • 165
  • 4
1
vote
1 answer

How to display text in one color below other text (to simulate an LCD segment display)?

I'd like to show numbers in a digital 'LCD' font superimposed on top of the number 8 shown in light gray to imitate look of a physical display. So you see all the 'segments' of the 8 in light grey and the number on top, similar to this:…
user1246562
  • 825
  • 5
  • 7
1
vote
1 answer

Multiple SwipeableContainers in a single form

I want to create a list of SwipeableContainers in a boxlayout on codenameone. list.add(createWidget("Banana")). add(createWidget("Apple")). add(createWidget("Juice")); public SwipeableContainer createWidget(String info) { …
gumbapp
  • 25
  • 3
1
vote
1 answer

Codename One container equal width and height

I have an Android project that uses several containers inside a Grid Layout. The containers' height and width are different and I am looking for a way to make them square. I have tried it the following way: int w =…
rainer
  • 3,295
  • 5
  • 34
  • 50
1
vote
1 answer

How is the size of the StatusBar (in the Toolbar) set?

In my app, on iphone as well as in the iPhoneX skin on the simulator, the size of StatusBar (inside the Toolbar) is for some reason too small/thin, so the title of the Form is shown partially hidden by the iPhoneX notch. I've tried to understand how…
user1246562
  • 825
  • 5
  • 7
1
vote
1 answer

Simulator Freezes With BrowserComponent

I have a BrowserComponent that loads a specific URL. BrowserComponent browser = new BrowserComponent(); browser.setURL(url); browser.addBrowserNavigationCallback(url -> { ... return false; }); This URL redirects to another, with the…
Diamond
  • 7,428
  • 22
  • 37
1
vote
1 answer

Codename name iOS and Android build Error

Sending an iOS and Android build results in a Jar size limit reached for free account but I am currently using a Pro subscription. What is the problem.
EmmaWedi
  • 61
  • 3
1
vote
1 answer

CN1 crash linked to skins?

I just updated to the latest CN1 sources, but now I get the below error for a project that compiled just before. Any idea about is causing this issue? NB. I've activated CSS for this demo example since I'm trying debug an issue I have with that.…
user1246562
  • 825
  • 5
  • 7
1
vote
1 answer

I added a jpg picture in the css file, how to remove it again?

I tried adding a picture directly in css like this: background-image: url(unsplash.jpg); The image is around 500kB, but I just realized that since I did this the generated .res file has exploded to around 7Mb. So it seems the photo may get added…
user1246562
  • 825
  • 5
  • 7
1
vote
1 answer

How to set the Simulator to use the exact resolution of the phone skin?

As far as I understand, the Simulator zooms the UI to whatever window size you want, which is great. However, is there a way to set/force the Simulator resolution to exactly the same (physical) resolution as the device skin? E.g. adjust the…
user1246562
  • 825
  • 5
  • 7
1
vote
0 answers

Problem starting Simulator after doing a reset of skins

I did a reset (and re-download of the skins) in one app, but now my other app fails with this message: Failed loading the skin file: /iPhoneX.skin I have downloaded the iPhone.skin in the other app (I realized the old iPhoneX skin I had didn't…
user1246562
  • 825
  • 5
  • 7
1
vote
1 answer

Loading image from storage

I have an image that I loaded by using URLImage class. Here is the code: EncodedImage placeholder = EncodedImage.createFromImage(Image.createImage(getWidth()/2, getWidth()/2 , 0xF92D2D), true); Image originImg = URLImage.createToStorage(placeholder,…
fnklstn
  • 492
  • 4
  • 16
1 2 3
99
100