codenameone

Previous form does not completely disappears on Codename One

我的未来我决定 提交于 2019-12-23 02:32:37
问题 My app written with Codename One involves showing a camera preview In a main form. I have used the native interface implementation to make it work on Android (iOS later). The app also includes in app purchase to upgrade to full version. That's why a form is shown regularly to suggest the user to upgrade. They can also choose to upgrade later which causes this upgrade to full version form to disappear and make the main form with the camera preview to appear. Yet on real devices sometimes the

App name shows twice downloading from icloud

别等时光非礼了梦想. 提交于 2019-12-23 02:29:08
问题 Mobile App debug build downloads for 80% and shows the App name twice for Mobile App on Home Screen. Please let me know what would cause this type of issue. 回答1: See this article for a list of things that can go wrong with an iOS build installation: https://www.codenameone.com/blog/my-ios-build-wont-install.html Notice that the article is a little old so the second entry should probably say the opposite (to make sure you're sending a 64 bit build): Make sure you built the debug version and

Why is the MapListener not always fired on Codename One GoogleMap under Simulator

笑着哭i 提交于 2019-12-23 02:29:08
问题 My app features a ContainerMap (GoogleMap with valid Javascript API Key) that is laid in center location of a BorderLayout form. super(new BorderLayout(BorderLayout.CENTER_BEHAVIOR_SCALE)); ... this.add(BorderLayout.CENTER_BEHAVIOR_CENTER, BorderLayout.center(userReportsMap)); I have registered a MapListener and I wonder why it is not always fired when I zoom in or out under simulator ? It looks like it is fired a dozen of times right at the beginning when the GoogleMap is initialized and the

FileSystemStorage.delete() doesn't delete captured files on ALL android devices?

…衆ロ難τιáo~ 提交于 2019-12-23 02:28:10
问题 According to this https://github.com/codenameone/codenameone/issues/411 (April 2015) it is the expected behaviour that the captured image are not deleted via FileSystemStorage.delete() in Android 4. That's what I get with my 4.4 device (CN1 version 3.4). Is it what will happen on every Android devices ? Is there a workaround to actually delete these captured photo programmaticaly (ie from my app) ? NB : as reported in the link above it works seamlessly in the simulator. Thank you, Cheers 回答1:

Codename One - Zoom, center and crop a video to force it to occupy all the screen

人走茶凉 提交于 2019-12-23 02:21:19
问题 I have an intro video in the center of a BorderLayout with the option BorderLayout.CENTER_BEHAVIOR_TOTAL_BELOW . In the top I have a logo, in the south I have login buttons. I write code similar to the following one, that chooses the right video according the rotation of the device. I tested that the video will be automatically zoomed to the available space: in the smartphones that I tested (Android and iPhone models), the video covers all the screen area (because the video length and height

Unicode File IO in Codename One

冷暖自知 提交于 2019-12-23 01:52:26
问题 I want to read an Unicode file (UTF-8) and write it back to another file. Code I used for reading is, (As in Textscreen in Codename One, how to read text file?) final String textFile = "/readme.txt"; String text = ""; InputStream in = Display.getInstance().getResourceAsStream(null, textFile); if (in != null){ try { text = com.codename1.io.Util.readToString(in); in.close(); } catch (IOException ex) { System.out.println(ex); text = "Read Error"; } } I even tried text = com.codename1.io.Util

Avoid overwriting of build.xml by Codename One

独自空忆成欢 提交于 2019-12-23 01:41:41
问题 The answer to the question Multiple Codename One CSS works fine (I prefer multiple CSSes than an unmanageable single CSS of thousands of lines...) , but it relies on the fact that Codename One will not overwrite my manually edited build.xml . How can I avoid at all that Codename One will overwrite that file? I set it as read-only, but I don't know if it's enough. Moreover, is there any good reason to allow Codename One to overwrite that file? 回答1: This file is overwritten when we have new

Carousel with thumbnail images at the bottom

落花浮王杯 提交于 2019-12-23 01:25:11
问题 In a Codenameone app, I'm trying to develop a carousel with a thumbnail list at the bottom. I've used Tabs control to display files (of diff types like images, video, text, button etc) in carousel style in the center of a form and another Tabs control to display thumbanail images (of the first carousel files) at the bottom of the form. When a user selects a thumbnail image in the bottom carousel, corresponding component should be displayed in the first carousel. hi.add(BorderLayout.CENTER,

Codename One - AutoComplete popup window location

狂风中的少年 提交于 2019-12-23 01:11:26
问题 On my GUI built app I am using the AutoComplete TextField for searching for values. After the user taps the "search" button, the AutoComplete appears. When I enter something, it works well, and the popup window appears showing the matched values right at the bottom of the field. But if I perform another search, the popup window appears further down. On a third search, it appears even further, and on a fourth search, it is gone from the window. I am attaching a screenshot of the third search.

SSL certificates in codename one

耗尽温柔 提交于 2019-12-22 18:39:38
问题 I want to use SSl certificates in codename one.Currently I am using below code for connecting to server ConnectionRequest req = new ConnectionRequest(); req.setUrl("http:/something"); But I want to use https instead of http .I want to import customize SSL certificates and want to use it in my app. How to import and use SSL certificates ? 回答1: You should just change this to HTTPS but you can't use a custom (invalid) SSL certificate. Your certificate must be valid and must be from a valid