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
6
votes
1 answer

Manually trigger Pull to refresh on Container

If I want to manually trigger Pull to Refresh on Container in Codename One after the load of the form. Please advise if anyone have any idea.
Vinod
  • 1,143
  • 7
  • 9
6
votes
4 answers

codename one local notifications not working on ios

I have added a local notifications so when my app gets a push while opening there is still a popup and a sound. It's working fine on Android, but on iOS the local notification doesn't appear at all. The push notifications are working fine on both…
6
votes
4 answers

GoogleMap snapshot method returns white image

I'm trying to grab a screenshot of a Google Maps V2 map using the API mentioned here, however this seems to always return a white image with the Google logo at the bottom. If it wasn't for the logo I would have been sure this isn't working at all…
Shai Almog
  • 51,749
  • 5
  • 35
  • 65
5
votes
1 answer

Porting app from LWUIT to CodenameOne

I have 3 apps developed in LWUIT using the Resource editor and adding more functionallity with Netbeans. I want to port them to codenameone. What is the best way to do that? I see that the navite Componentsfrom LWUIT have an equivalent Componentin…
Mun0n
  • 4,438
  • 4
  • 28
  • 46
5
votes
1 answer

Access a component inside a Tab component

I'm new using Codename One. I'm doing an app which have a Form, that has a Tab component with 14 tabs inside, every tab has a gridlayout with 42 buttons, and I want to change a property in one button. The problem is that I don't know how to reach…
5
votes
1 answer

Multiple Codename One CSS

Is it possible to use more CSSes in the same Codename One project? Use case 1: I want different styles in different parts of the app or I want to replace at all the current styling. Use case 2: I want that the current style is derived from several…
Francesco Galgani
  • 6,137
  • 3
  • 20
  • 23
5
votes
2 answers

SunCertPathBuilderException: unable to find valid certification path to requested target in CN1 app

Please can you help. I have a Codenameone app that issues a GET request to a cloud Tomcat 8 server, and expects back some response JSON. Importantly this is a HTTPS call. When i run the request in Postman it works…
Think.Smart
  • 523
  • 1
  • 5
  • 13
5
votes
1 answer

How to resolve null when using webservices in codename one

I was calling a data from the database in php and pass the data to codename one using Webservices. If I point my URL to a JSON file, I was able to fetch my record but when I change it to php and encode the page with JSON, I am getting null. How can…
Emmy
  • 396
  • 1
  • 8
5
votes
1 answer

Data not block size aligned in codenameone BouncyCastle (No Padding)

I am trying to encrypt an ISO-0 pinblock using the codenameone BouncyCastle lib. The methods I use to achieve this is as follows: private static byte[] performEncrypt(byte[] key, String plainText, boolean padding) { byte[] ptBytes =…
Propagandian
  • 444
  • 3
  • 10
5
votes
1 answer

Debug target for gradle equivalent to the run {} block for passing arguments

I'm trying to port Codename One client builds which are very customized ant scripts to work with gradle. When you run a Codename One app on the simulator you aren't running the apps main class but rather something like: java -classpath…
Shai Almog
  • 51,749
  • 5
  • 35
  • 65
5
votes
2 answers

How do I merge or even disable footnote links in asciidoc fop

I've got a rather large asciidoc document that I translate dynamically to PDF for our developer guide. Since the doc often refers to Java classes that are documented in our developer guide we converted them into links directly in the docs e.g.: In…
Shai Almog
  • 51,749
  • 5
  • 35
  • 65
5
votes
1 answer

Does CodenameOne support other JVM languages besides Java?

CodenameOne supports compiling Java code down to native iOS binaries. Does it support other JVM based languages such as Clojure or Jruby ?
Ivar
  • 5,102
  • 2
  • 31
  • 43
5
votes
1 answer

How do I submit a Codename One application to the itunes store

I've finished the development of my Codename One application and tested the debug version. I created an Appstore version and I'm ready to submit it to the itunes store but I'm unsure how to do that. When I go to Apple's member area site I don't see…
5
votes
1 answer

can't install company app Codename One windows phone

I am successfully able to create and download build from CN1 server for Windows 8. I am also able to unlock my windows phone (Microsoft Lumia 640 Windows OS 8.1) using 'Windows Phone Developer Registration' utility. See below image. But still I am…
akash kubavat
  • 847
  • 6
  • 17
5
votes
3 answers

How to achieve Floating Action Button in Codenameone?

Floating Action button in android is good option. I want this in my codenameone application. I have tried it by using LayeredLayout, by having two layouts. I'm unable to achieve it perfectly. The button is keep moving along with the scroll. how to…
mahmood sk
  • 77
  • 6