Questions tagged [codenameone]

Codename One is an open source Write Once Run Anywhere Mobile Development Platform that allows Java developers to build native (iOS/Android/Windows Phone etc.) applications

1
vote
1answer
17 views

Facebook native SDK conflicts with Parse4CN1 on Android

I'm currently having some trouble with an issue that was previously fixed through a build hint some time ago as you can see in the following thread: https://groups.google.com/forum/#!searchin/...
1
vote
0answers
9 views

CodenameOne Android build fails

Was working yesterday. Today got this error when send android build: Server Detailed Error Message: Whitelabel Error PageThis application has no explicit mapping for /error
1
vote
2answers
51 views

NullPointException from Codename One code

Since a few days ago and out of nowhere, I sometimes get this NullPointException error: Exception: java.lang.NullPointerException - Attempt to invoke virtual method 'boolean java.util.ArrayList....
1
vote
2answers
38 views

Network error on some devices after build

I installed the app after build on different devices (Android) the app opens up fine but when sending network request only one of the device is able to send successfully the others remain unresponsive....
1
vote
1answer
20 views

CN1: Gradient with alpha channel

I would like to have a gradient which goes from black to transparent (not white). How can I achieve this? From my attempt below I assume the gradient style color's alpha value is not considered: ...
1
vote
1answer
80 views

Is it possible to use javapackager on ZuluFX for Mac

I was able to use ZuluFX 8 with javapackager on Windows. However, on a Mac I get this error: Bundler Mac Application Image skipped because of a configuration problem: Cannot determine which JRE/JDK ...
2
votes
1answer
33 views

Is It necessary I have an apple computer to publish a “codenameone app” into apple store?

I developed an App using CodeNameOne Framework. To publish this app in the apple store, do I need to have an apple computer? Using CodeNameOne Wizard, could I avoid that?
1
vote
1answer
19 views

Codenameone AutoCompleteTextField scrolling on Android causes select

When using AutoCompleteTextField on android it selects and closes the popup when trying to scroll a long list. The code is based on the sample code provided by codenameone. The iOS and Simulator ...
2
votes
1answer
34 views

How to use the retrieveConnected method?

I'd like to know how to use the retrieveConnected() method from the Bluetooth class please. This class is part of the CN1Bluetooth.cn1lib. I don't know how to get the paired devices with this method. ...
0
votes
1answer
32 views

Error Building Codename One Project on Intellij with codename one 6.0 (Reflective error)

Am trying to send a codename one project to the build server that was made using codename one 6.01. it works on the emulator though at a point i get an IllegalAccessException during runtime after ...
1
vote
0answers
57 views

Codenameone App on iPad uses wrong aspect ratio on every other start out of sleep

First, I am new to codenameone, so I'm sorry if the solution is obvious. I have a problem where my codenameone app does resize the current form after a start from background, but just on the iPad. It ...
1
vote
0answers
25 views

Is there a way to make push notifications text wrap on Android devices codename one

I am developing a mobile app and when I send push notifications to the devices, Android devices do not seem to be able to wrap text like what on other applications do. Eg instead of displaying a ...
1
vote
1answer
14 views

Codename One refresh form

In my app I want to reload a form. Problem is that every time I reload the form, existing items persists on the screen and new ones are added subsequently. There are, for example, two buttons: ...
1
vote
0answers
9 views

iOS standard menu inside a Codename One app

A lot of iOS native apps have a menu like in this video (maybe this menu is standard and it has a name, but I don't know what is its name): https://www.informatica-libera.net/videoLavoro/menuIOS.mp4 ...
0
votes
1answer
29 views

Which text editor can be able to properly display the storage files created by the CodenameOne Netbeans plugin in linux?

Which Linux text editor can be used to view the hidden files created by the CodenameOne simulator? I have tried the default Gedit and Notepadqq but the text appears gibberish while on Windows it is ...
1
vote
0answers
22 views

Codename one - Form.initLaf throws random “Illegal Access” errors

in my app, I get "IllegalAccess" errors, at seemingly random places and times. The only thing in common is the stack trace: java.lang.IllegalAccessError: class sun.reflect....
1
vote
1answer
24 views

not able to run new codeNameOne project createdd by the IDE

I have created a new CodeNameOne Project with netbans 10.0 and i am not able to run it Output : /home/autonome/NetBeansProjects/javaWorkSpace/CodenameOne7/build.xml:17: taskdef A class needed by ...
1
vote
1answer
25 views

Save List of PropertyBusinessObjects to the Storage

I need to save a dinamic List of PropertyBusinessObjects to the Storage, but I didn't find how to do that. I should be able to add and remove items from the list. The following test code throws java....
1
vote
1answer
29 views

Push notification not reaching when app in foreground

I'm having trouble getting Push Notifications when the app is in foreground in an Android device. As soon as I put the app in the background all goes well. This is the java code I use to send de ...
1
vote
1answer
30 views

Codename One sendSMS on Android

With the recent Android policy updates, sendSMS no longer works properly. In our app, we have buttons to allow users to call or send messages to their contacts. The buttons call Display.getInstance()....
2
votes
1answer
18 views

codenameone UnsupportedClassVersionError: javafx/scene/media/MediaException has been compiled by a more recent version

...of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0 Hi there, I have moved from a Windows to an Ubuntu machine and am ...
2
votes
0answers
17 views

Problem with editing a container with theme.res

I have a problem to edit the background color of my container. Its UIID is equal to null when i check the component inspector. But in my code, i've indeed set the UIID for this component to modify it: ...
1
vote
1answer
45 views

is Webp supported in codename one?

I've looking to experiment a new app with something that is not react native and found codename one. It seems kinda superior, since the binary size is smaller and there is java/kotlin support (this is ...
2
votes
1answer
20 views

Where is the .codenameone and the .cn1 folder in Linux?

does anyone know where the .cn1 and the .codenameone folders are located in Linux? I am using Netbeans IDE 10.0 in Ubuntu 18.10 need to access the simulator's storage and screenshots respectively. ...
2
votes
1answer
29 views

Android IAP non-consumable purchase in CN1

My question is, on Android, does the p.purchase() method fire the implemented method (for non-consumable IAPs), in the main class, below, or is this just IOS? @Override public void itemPurchased(...
2
votes
1answer
24 views

Send a Codename One iOS AppStore build to App Store

I have a Codename One iOS AppStore build. I filled all required data in https://appstoreconnect.apple.com/, but it's written that "you can upload a build using Xcode or Application Loader". I supposed ...
1
vote
1answer
92 views

Why is my app not starting on iOS and just showing a loading screen?

I have developed an app in Codename One. In the simulator the app is working on both iPhones and Android phones. Now I installed the app on my phone. It's working perfectly on different Android phones....
1
vote
1answer
11 views

Codename One APK Manifest for Android TV: build hints

This question is releated to: Codename One APK Manifest for Android TV I found some documentation here: https://developer.android.com/training/tv/start/start In this documentation, it's written that ...
1
vote
1answer
30 views

Codename One APK Manifest for Android TV

(Note for the readers: this question is referred only to Codename One) As I previously told in Use a Codename One app for a tv box with tv remote control, I published in the Play Store my first ...
1
vote
1answer
39 views

scandit not scanning 2D-codes

I've been trying use Scandit in Codename One through their library. I can display the camera screen on my phone and also scan barcodes, but not 2D codes. I'm using version 5.5.2 for both Android and ...
1
vote
1answer
17 views

how to make Toolbar overlaying in CN1?

Since the Form ,where a content pane and the toolbar is part of, has a LayeredLayout I tried to set insets of each container appropriately to manage this but it doesn't seem to work. Is it possible in ...
1
vote
1answer
13 views

Codenamone project runs on simulator but not on device

I have built an app with codenameone. Tested on the simulator, everything appears fine. However when I build an app, it does not work well on the device. I use the sqlite database and the app is ...
1
vote
0answers
14 views

Getting to debug codenameone android app on device

I am trying to do on device debugging of my codenameone android app. I am unable to get a successful build because I am stuck with this consistent error. Android resource linking failed /Users/...
1
vote
1answer
14 views

In CodenameOne, is the argument for ConnectionRequest.setTimeout in milliseconds or seconds?

I have an extremely slow and unreliable internet connection. Should I set a timeout, or not? What is the unit of measurement? I understand the default is "-1" which sets no timeout. I guess the ...
1
vote
1answer
27 views

Use of cn1libs in cn1libs?

Is it possible? I couldn't find anything concerning this in the documentation. When I try to refresh cn1libs (which I downloaded over the CN1 preferences) in my cn1lib project it is stated that it's ...
1
vote
1answer
14 views

Background playback of videos in Codename One

I have the following code: MediaPlayer media = new MediaPlayer(MediaManager.createMedia(thePath, true)); media.setAutoplay(true); video.add(BorderLayout.CENTER, media); that works. I want that the ...
1
vote
1answer
15 views

Can not add additional tags using the new GUI Builder 5.6

I'm trying the use the new GUI Builder to create tabs. I know that you can hand code the component, which I did for the main one. But I do have many additional which the new GUI builder could help. ...
1
vote
1answer
25 views

Codename One iOS Statusbar on landscape orientation

I think that the iOS Statusbar doesn’t make sense when the device is landscape orientated. How can I make a Codename One app showing the Statusbar only on portrait?
4
votes
1answer
69 views

How to handle keys pressed almost in the same time?

I'm trying to resolve a problem with the search bar. It works but the problem is that if I press two keys almost at the same time, the app will only search the words with the first key pressed. Here ...
1
vote
1answer
30 views

Serializing PropertyBusinessObject to XML

I'm trying to upgrade the code quality of a part of my app which can display data within dynamic Form that are configured via an XML string translated into an object. Until now, I was doing parsing ...
2
votes
1answer
30 views

codenameone downloading files/images visible to other apps

I note that other apps (testing on Android) like WhatsApp, etc have folders that contains images the user has used/downloaded. These folders (like WhatsAppImages) are visible in other apps (Gallery/...
0
votes
2answers
31 views

Why is codenameone REST giving me file name too long error?

java.io.FileNotFoundException: /Users/jamesagada/.cn1/cn1ConCache/...
1
vote
1answer
23 views

Why do multiple parallel invocations of NetworkManager.addToQueueAndWait interfere with each other?

Multiple invocations to the jsonRequest() method from different Threads (Timer-1 and EDT) do interfere with each other and even one call returns the result of a previous invocation My CodeNameOne ...
2
votes
1answer
30 views

Download a folder to the FileSystemStorage

In an app, I need to download html pages (along with css, images and js files) from server to the FileSystemStorage and then display it on device. With Util.downloadUrlToFile I can download the files ...
2
votes
1answer
33 views

Codename One custom Layout with percentage width and adaptive height

This question is referred to Codename One only. Use case Several apps, like Instagram, have x-axis scrollable boxes, like in this video: https://www.informatica-libera.net/videoLavoro/Video-2019-02-...
1
vote
1answer
24 views

Codename One web.xml missing with web service wizard

When using the webservice wizard to create the server class, the required source java files are auto-generated and the method stubs need to be completed. When deploying that web service, you can ...
1
vote
0answers
29 views

Pb to read datamatrix barcode

Codename One : I'm going back to a project and I'm not at all comfortable with this environment I have a problem to read Datamartrix barcode. Using zxing. Somebody have a way ? Thanks Dominic ...
1
vote
1answer
25 views

How do we apply the ORDER BY and LIMIT,OFFSET Clauses to DAO.fetch(query) in cn1-data-access?

DAO.fetch(query) allows us to get a collection of entities from the sqlite database that meets the query condition. query can be a map or string []. How can we specify ordering with the ORDER BY ...
1
vote
0answers
15 views

CN1 DAO keeps failing for no clear reason

I am trying to use CN1DataAccess to access SQLite database. Whenever I want to access any table, I get a null exception this is even though the database is there and the tables are there. java.lang....
2
votes
1answer
19 views

How to determine the names and types of the properties in a propertybusinessobject in Codenameone?

Is there a way to retrieve the names and the types of the properties in a property business object?

http://mssss.yulina-kosm.ru