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.
codenameone
4,949
questions
51
votes
2
answers
26k
views
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 ...
28
votes
3
answers
73k
views
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 ...
18
votes
7
answers
31k
views
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 ...
11
votes
3
answers
11k
views
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 ...
11
votes
2
answers
285
views
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 ...
8
votes
2
answers
713
views
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 ...
8
votes
1
answer
221
views
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 ...
7
votes
1
answer
299
views
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
7
votes
1
answer
2k
views
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 ...
7
votes
1
answer
512
views
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?
7
votes
2
answers
5k
views
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 ...
7
votes
1
answer
187
views
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:
...
7
votes
1
answer
511
views
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 ...
7
votes
1
answer
387
views
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 ...
6
votes
4
answers
5k
views
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 ...
6
votes
1
answer
4k
views
Google Play recent review notification - APK HAS A PROMINENT DISCLOSURE BUT THE DISCLOSURE IS NOT ADEQUATE [closed]
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 ...
6
votes
4
answers
460
views
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.
...
6
votes
1
answer
241
views
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.
5
votes
2
answers
2k
views
codename one container with action listener
I am developing my first mobile App with Codename One. I am trying to get a container to react to an normal click action event.
I have a container (note this is not a swing container, but a codename ...
5
votes
2
answers
60k
views
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 ...
5
votes
3
answers
500
views
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 ...
5
votes
6
answers
6k
views
Creating two Dimensional array with existing arrays in java
I have four arrays of strings and I would like to create a two dimensional array of 3 columns and dynamic rows.
the arrays are like:
String[] first_name;
String[] last_name;
String[] unit;
String[] ...
5
votes
1
answer
292
views
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 ?
5
votes
2
answers
642
views
How to create the custom Calendar in LWUIT?
Currently in LWUIT, I can use Calendar. But I can't add the notes on particular dates.
How to create the custom Calendar in LWUIT? Because I need to show the birthday notes on LWUIT Calendar and ...
5
votes
1
answer
578
views
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 ...
5
votes
1
answer
311
views
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 ...
5
votes
2
answers
526
views
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 ...
5
votes
1
answer
213
views
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.
...
5
votes
1
answer
794
views
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 ...
5
votes
1
answer
1k
views
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, ...
5
votes
1
answer
996
views
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 ...
5
votes
1
answer
3k
views
Is There A Way To Disable Mac OS Retina Scaling For A Swing App?
We have a rather complex application that needs as much screen real-estate as it can get, naturally the retina display Mac Books are excellent for this purpose.
However, it seems that in Swing those ...
5
votes
1
answer
145
views
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.
...
5
votes
1
answer
190
views
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 ...
4
votes
4
answers
2k
views
Codename one container background color
I am trying to change the background color for a specific container with this line of code :
Container container = new Container(new BorderLayout());
container.getStyle().setBgColor(0x99CCCC);
but ...
4
votes
1
answer
2k
views
Codename one label color change
I'm looking how can I change the label color on codename one.
I've tried this one but it didn't work at all:
Labelname.getSelectedStyle().setFgColor(ColorUtil.CYAN);
4
votes
1
answer
3k
views
How to use Codename one Storage?
I am trying to port my LWUIT application to Codename one.
I have used RMS in LWUIT and now obviously I have to transform this to Storage.
I don't understand how the Storage class works in Codename ...
4
votes
2
answers
5k
views
Adding image in java code in code name
I am new in code name one. I have to add image in a container(flow layout) with specific width and height.
1: codenameone's guide says that we have to add image in resource folder. Where is that ...
4
votes
2
answers
10k
views
How to force permission "android.permission.CAMERA" to be added to manifest in Codename one
I am trying to show a live preview of the rear facing camera in Codename One. I use for that the native interface (I am targetting Android first).
To allow my app to use the camera without messing ...
4
votes
2
answers
438
views
iOS debug build install fails
I have a CN1 test project which was last built and successfully installed on various test devices in mid January 2017.
In rebuilding this project using the current CN1 version with the same ...
4
votes
4
answers
869
views
Get current Date without time on CN1
I have huge Problems getting the Date without time, i want to set the time to 00:00 so i can check date differences.
My steps so far trying:
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-...
4
votes
1
answer
771
views
usesCleartextTraffic not permitted
I use to send build to codenameone for year, but suddenly all the newly android build apps is not working with http protocol, getting "java.io.IOException: Cleartext HTTP traffic to domainname.com not ...
4
votes
1
answer
2k
views
How to control/scale image size in Codename One?
I used the (new) GUI Builder and inserted an image (by way of adding a Label). However, it appears too big. Is there anyway I can scale and control the size? (I saw something which points to ...
4
votes
1
answer
1k
views
CodeName One error: cannot find symbol
I have created a simple sample Application with CodeNameOne without any changes.
Certificate and Provisioning file is available and configured as project properties.
IDE: Eclipse
Desktop OS: Windows
...
4
votes
1
answer
559
views
How to build the native Android sources from Codename One's build server
I'm using the new gradle build switch when sending an Android build for Codename One. One of the highlighted benefits of building with gradle is the ability to open/run in Android Studio and indeed ...
4
votes
1
answer
157
views
My app painting over the iPhone status bar
Today I made my first version of my app to run on the iPhone. When I did this I see that it paints over the area where the status bar is at the top of the screen, but that the status bar is also ...
4
votes
1
answer
221
views
Codename one new gui builder-back command from EVERY form navigation
I am navigating between forms in the NEW GUI builder. The old one had a back button on every form by default.
How do I enable the back button on new gui builder in every form, every time i navigate ...
4
votes
2
answers
359
views
Can I test my Codename One app on my iOS device for free?
I have written a simple to-do list app in Codename One, and so far I have used the simulator to test it. I want to see how it looks on a real device (iPhone 5s or 8 Plus), but I don't want to purchase ...
4
votes
1
answer
422
views
CallBack iOS not working
I'm trying to call a static method of a codename one class from a native interface implementation in Objective-C (iOS). I thus use a callback. I imported the header file of the wanted class and the
#...
4
votes
1
answer
1k
views
Jar size 50MB limit
When I send an android build to the server, it is failing with the following error in (build.xml line 338)
jar exceeds 50MB in size! Please reduce the size of the project
The build halts.
I ...