Open Source & Free  

Questions of the Week XIX

Questions of the Week XIX

Header Image

It’s cucumber season, there is little going on around here and elsewhere. Stackoverflow mirrors this general trend with seasonal low activity. Our update to the build servers today includes a lot of fixes but is still tame compared to the last update.

Onwards to the questions on stackoverflow:

Cannot edit new locale in Codename One IntelliJ plugin

This is a bug in the current version of the plugins. A workaround is described in the answer…​

Some numbers in the application version are not taken into account

We simplified version numbers for portability but some edge cases with floating point behavior haunted us in the past

Build Canceled By User on BLE example

Sometimes we accidentally commit bad build.xml files from local development. To workaround this we automatically cancel broken builds.

HTC Performance Issue with CodeNameOne App?

Debugging performance issues is always a pain. We noticed that a lot of times a bug or exception was incorrectly classified as a performance issue. That is why you need to provide as much measurement and information as possible when discussing performance.

How to handle exception java.net.ConnectionException explicitly

Error handling in networking isn’t always the most intuitive thing, and although we cover it a lot it’s still confusing.

Database object was released by the GC without being closed first

iOS is sensitive to threading issues within SQL access code.

Move the marker to selected location on MapContainer

Events in native widgets should be handled by the native widget itself.

Virtual keyboard ios “done” button and toolbar disappears

Some of the virtual keyboard flags are a bit unintuitive.

How to add an ArcProgress (lib) to the TitleBar in codename one

If you are struggling with an effect please provide code and images to clarify the issue

ImageViewer isn’t working fine

URLImage doesn’t work well with the ImageViewer, there are some conflicting concepts there.

How to get the mobile number of current sim card in real device?

This is a pretty common FAQ and the answer is always the same:

Notice that apps like whatsapp, uber, gettaxi etc. all ask you to type in your phone number then a verification code sent via an SMS…​

Difference in GoogleMaps rendering

We generally recommend people use native maps as they look much better on the device. Unless there is some restriction or requirement this is probably the best approach.

Hamburger Icon and Overflow Menu Size

Some customizations are harder to figure out without looking at the code, in most cases documentation exists but finding it might be challenging.

Show blank google maps

The maps situation in Codename One is a bit confusing with native maps, the lightweight maps and even HTML maps which we haven’t promoted as for most purposes the native maps would be better.

CodenameOne background task for BluetoothLe connection

Background location is pretty difficult to get right in cross platform solutions.

Getting Locations Best Practice

Under normal circumstances we treat location as hybrid location where available (Android/iOS). In Android there are some nuances with Google play services.

Leave a Reply