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.
4,691
questions
1
vote
0
answers
16
views
How do I set the Y label of a chart to 2 digit behind the floating point ex. 3.12
How do I set the Y Label of a chart with a percentage format that is 2 digits behind the floating point? For example, 3.12.
setYLabelFormat needs a Numberformat parameter that is depreciated and what ...
1
vote
1
answer
17
views
Codenameone does not scan barcode
I have to scan a barcode after a button press in an app mobile developed with Codenameone.
I've added the library cn1-codescan.cn1lib from https://github.com/codenameone/cn1-codescan and this is the ...
1
vote
1
answer
20
views
Can't install CodenameOne plugin in Netbeans 12.0
I have already installed the plugin and it worked fine, but after a few changes, I had to remove it and reinstall it.
Now for some reasons Netbeans asks for the plugin org.openide.execution.deprecated,...
1
vote
1
answer
10
views
Codename one: TextField to keep some space during input
How can i make my textFields that the user input does not start exactly at the margin, like when one starts to type some input some space is left, and also some TextFields that have a HintIcon i want ...
1
vote
1
answer
20
views
Can't scan the QR code by com.codename1.ext.codescan.CodeScanner
I often can't read QR code by com.codename1.ext.codescan.CodeScanner on Android and iOS.
Is there any other better codescanner library for codename1?
For exapmle, the attached QR code image(shown on ...
2
votes
1
answer
17
views
Codename One app UI Container not rendering after programmatic update
I am having a problem with making the UI work properly in a Codename One application. I have distilled it down to just the "starter application" which loads a ParentContainer.
The ...
1
vote
1
answer
15
views
How to remove the underline in a TextField in CODENAME ONE?
I'm trying to remove the underline that shows in a TextField in codenameone.
'''
TextField username = new TextField("", "", 20, TextArea.USERNAME);
'''
1
vote
1
answer
18
views
iOS picker appears behind the sheet
On iOS devices and the simulator if a picker is selected from a sheet window the picker option appears behind the sheet.
Sheet sheet = new Sheet(null, "My Sheet");
sheet.setLayout(new ...
-1
votes
0
answers
21
views
java.lang.NullPointerException Codename1 [duplicate]
Im trying to display an avatar pic and Theme pic on my Login Form mobile application on CodeName One like that
Image profilePic = theme.getImage("user-picture.png");
Image mask = theme....
1
vote
0
answers
23
views
How to resolve NullPointerException when using webservices in codename one
i am calling a data from the database in php and pass the data to codename one using Webservices.
and to display itThis is my php code that I was calling in codename one
How to resolve ...
1
vote
1
answer
21
views
Codename One: i want to send a JsonArray to the server using a Hashtable in connection request
I am building an app that will be submitting the details of your siblings to the database.
MY idea is since i dont know number of your children, i just have a floating button that am using to call a ...
-3
votes
1
answer
34
views
How to add text under an image that display in FlowLayout() in codename one
for (Evenement r : list) {
Container c3 = new Container(new FlowLayout());
Image placeholder = Image.createImage(380, 380);
EncodedImage enc = EncodedImage.createFromImage(placeholder, ...
1
vote
1
answer
21
views
Can someone assist me in understanding Animations in CODENAME ONE?
I am confused as to how various animation classes are utilized in CN1 to achieve desired visuals. Specifically classes such as "ComponentAnimation", "AnimationObject" & "...
1
vote
1
answer
14
views
Internal testing's run time error only encountered on app downloaded from Google play
I have an app being sent to android build successfully.
I install the app by OTA click to install on codename one build and run it successfully.
I upload the aab file to Play console for internal ...
1
vote
1
answer
15
views
BrowserComponent Javascript Engine
I'm rewriting my interface to the javascript engine available in the BrowserComponent but I'm a bit confused. I used to make java methods and objects available to the javascript scripts as below but ...
1
vote
1
answer
54
views
Codename One images not loading
The image(s) is in the "src" folder. Everything was working fine, until this morning I keep getting a black screen when I run the simulator with
"java.lang.IllegalArgumentException: ...
1
vote
1
answer
38
views
Create internal testing release error when upload App bundles to google play
I send Android build with build hint android.appBundle=true.
And upload the aab file to google play for creating internal testing release with the option "Let Google manage and protect your app ...
1
vote
0
answers
17
views
Send ios debug build errors with testFlight
I send ios to debug build with ios.testFlight=true but got errors.
ld: framework not found LocalAuthentication.frameworkSystemConfiguration
ld: framework not found LocalAuthentication....
1
vote
1
answer
35
views
i just need to add details to the list, one at a time using codename one
am working on a project where I need to add a list of children(including their details) in a database table... but before the user sends the details I need to see that list, the maximum is 7 children. ...
1
vote
1
answer
107
views
Bundle identifier is missing. x doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor
I'm trying to build a release version for IOS using Codename One but it keeps failing because of the product_bundle_identifier missing. I've deleted the .codenameone/iosCerts folder as per this Reddit ...
1
vote
1
answer
59
views
Errors importing and running codename one maven project using eclipse, windows 10, jdk_8u321
Downloaded Codename one maven project for eclipse. When I import the project, at the end of the import I get this error:
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-...
1
vote
1
answer
26
views
theme.res file not being created within new "Codename One" projects. [OS- Win10, IDE- Eclipse, Java SDK- 8u321]
The theme.res file is not being created in new projects. It is however being created in demo projects. I can copy the file from a demo to my new project, but this is annoying and gives little control ...
0
votes
0
answers
18
views
Can't input traditional Chinese words in AutoCompleteTextField by Google Gboard keyboard on Samsung
On my Samsung mobile phone, there is no other language option in Language settings except for "English", also Gboard keyboard settings don't show the "Traditional Chinese" language ...
1
vote
0
answers
38
views
Cannot build Maven project in codename one build server (Error Log)
Using Netbeans 11.3. Create the project from https://start.codenameone.com/. copy the contents of the tools/netbeans directory into the root project directory. I can run the project simulator, run the ...
2
votes
1
answer
54
views
Running Simulator shows error Java Runtime Environment does not include developement tools
Since last week when I try to run the CN1 simulator I see the above message. If I click ok the simulator opens however all sizes of text and images are incorrect (very small). I have added the file ...
1
vote
1
answer
25
views
Unauthorized response message while sending android build
I have a basic subscription of codename one and don't use maven for my project.
I got an error while sending android build.
Sending token build
Response message from server is: Unauthorized
Server ...
2
votes
1
answer
41
views
Is there any way for a time picker to have infinite scroll?
The existing cn1 picker has start time and end time. Before start time and after the end time - the picker space is empty, but it still scrolls and looks a bit off.
Is it possible to make a picker ...
1
vote
1
answer
22
views
How to add listener on "Enter" button in the virtual keyboard?
Instead of hiding keyboard I would like to tight an action listener to the Enter button.
To my understanding, it might have different behavior on iOS and Android, as well as it might be not very ...
2
votes
0
answers
20
views
Check isnull in the field of a row
Is there any method for checking a field value of a row from an SQLite table that has a null value?
There are methods of the row like getInteger, getString,..... but no method for checking null value.
1
vote
1
answer
623
views
Please update to Xcode 7.3 or later to continue developing with your Apple ID
I am now unable to generate iOS certificate and profile using the codename one certificate generation tool. I am getting the below msg from apple.
Please update to Xcode 7.3 or later to continue ...
0
votes
0
answers
45
views
How I change my codename device on Android Device
I have a question. Some device has codename.
For example:
Redmi K20Pro has codename "raphael"
Samsung A02S has codename "A02q"
Bluestack 5 (my device need change android codename) ...
1
vote
0
answers
24
views
[codenameone]IOS Certificate generation failed
Windows 11 Pro
Netbeans 12.3
Latest Simulator
Generation of IOS development certificate is producing an Error
Please see screen shot.
Also note some of the text is cut
off in the dialog message.
...
1
vote
0
answers
35
views
".www..." Cookie tried to set to another domain
Nothing urgent, not even a problem but a bit annoying.
I noticed a warning in the output console
Warning: Cookie tried to set to another domain* that's triggered from a System.out.println at https://...
2
votes
2
answers
36
views
Prevent from duplicate installation in different devices
We provide a subscription to our app.
Are there any standard technics to prevent users from duplicate installations in different devices?
1
vote
2
answers
26
views
How to have a longPress Event on a CheckBox in Codenameone?
i need to implement a long press event on a checkbox in codenameone.
On normal buttons i use the longPointerPress method and a boolean to control if the short- or longpress event happens.
With the ...
1
vote
1
answer
18
views
CodeSacnner library of cn1 works in Android but crashed in ios without any error message
I use the CodeScanner library of cn1 for QR code scan. This library installs Barcode Scanner + simple for the scanning process and works in Android.
I also build my project for ios. But my program ...
-1
votes
2
answers
50
views
I'm getting this error while running my codenameone application and i didn't know what's the exact problem [duplicate]
java.lang.ArrayIndexOutOfBoundsException: 0 at com.codename1.ui.plaf.UIManager.initFirstTheme(UIManager.java:2156) at com.mycompany.myapp.MyApplication.init(MyApplication.java:33) at sun.reflect....
1
vote
0
answers
18
views
Is there any method of TextField for selecting all text in it when get focused?
A user has to delete existing characters in a textfield before entering new content.
Is there any method of textfield for selecting all text in it when getting focused?
A user can enter new content ...
1
vote
0
answers
29
views
How to improve the performance and accuracy of codescan.CodeScanner library of cn1
I use the CodeScanner library of cn1 for QR code scan.
This library installs Barcode Scanner + simple for the scanning process.
But the performance and accuracy of Barcode Scanner + simple are poor.
...
3
votes
1
answer
38
views
Can someone on Basic Plan send Push Notifications?
I am currently on Basic Plan which if I am not mistaken entitles me to 'Push Notifications (5K/month)'. But when I send a request to
https://push.codenameone.com/push/push?... with my token, I get ...
1
vote
1
answer
32
views
Codenameone I want to display html inside a TextArea
I just want to display html text inside a textArea for exemple if I write <h1>Header</h1> I want it to be displayed as header not with the tags.
I tried with webBrowser but it didn't work.
0
votes
1
answer
129
views
Fingerprint crash on Android 11
I follow the example code in the following document fingetprint support to add fingerprint support in my codenameone project.
My codenameone program crashes running on the codes
Fingerprint....
1
vote
0
answers
31
views
Android Build error with invalid XML character (Unicode: 0x8)
My codename one project has been built and run on the simulator successfully.
I send to android build to your server but failed and generated error.txt.
The main error message in the following:
Task :...
1
vote
0
answers
31
views
Is there any way to create and display music notation inside of a codenameone app?
Is there any way to create and display music notation inside of a codenameone app?
For Java generally there are some libraries like for example JFugue that let you write music inside a program. Maybe ...
2
votes
1
answer
13
views
I would like to develop function related to QRCode reader. Is there anyway I can debug by Simulator
Can I debug my program for QRcode reader with cn1 simulator without a camera?
The simulator doesn't include a camera to scan QRcode. How do I debug my program for QRCode reading?
1
vote
1
answer
11
views
Can I build table with % and growhorizontally?
Trying to build a table with two columns and TextArea. Works great except for the first column is too narrow. Second column does growhorizontally as expected. Setting column width % removes the ...
1
vote
1
answer
18
views
How do I solve EncryptedStorage error when I make a https request?
I try to encrypt my secure data with EncryptedStorage described in EncryptedStorage
I add the code below
EncryptedStorage.install("weejgrieqjgewgjwerrgjerwgmwe 9");
It shows error messages ...
2
votes
1
answer
18
views
String picker is not working and breaking the form
I have a form set with BoxLayout.Y_AXIS.
I tried adding a string picker, but when I click on it, the form gets broken. You can see the result on the screenshots.
Here is the code of the picker and how ...
2
votes
1
answer
44
views
Codename one IOS builds failing
I have been having issues with IOS debug and release builds on the codename one server. From the build server I get the following output:
error: Provisioning profile "org.ims.xconnect ...
1
vote
1
answer
18
views
display data in codenameoone using table
am making a mobile app using codenameone and i want to display the data from database which i get the following json response using asp.net api
{
"FullNames": "sample string 1",
...