codenameone

Codenameone - change dialog commands appearance

本秂侑毒 提交于 2019-12-24 20:13:30
问题 I have developed a mobile application, and I used leather theme. when i use Dialog.show() the command buttons are not visible enough and I need to change the background and foreground. Actually I am not sure which component I need to customize with Codename One Designer ? 回答1: In the theme constants tab you can set the dlgButtonCommandUIID variable to the UIID you want the buttons to take. The default is Button so customizing the Button UIID should work just fine. Background for the buttons

Text not showing using Native Font on iOS

半世苍凉 提交于 2019-12-24 16:25:38
问题 I'm using the new Codenameone plugin (unverified) and decided to try out the new native font. I initially used Roboto ttf font which I completely changed to native:MainLight and removed. It works fine on Android and Simulator but all text disappeared on iPhone and iPad running iOS 9.2 and 9.1 respectively. I called: if (Font.isNativeFontSchemeSupported()){ Dialog.show("Supported?", "Yes it is supported" + Font.getDefaultFont(), "Ok", null); } which returned true and the Dialog pops up. Am I

How do I post a picture/image using the IO Codenameone

狂风中的少年 提交于 2019-12-24 00:57:34
问题 Because codenameone can not use external libraries (HttpConnection) then I have to use the internal library / API provided Codenameone, it's just that I've managed to post the data to format text / string by using ConnectionRequest, I want to know is there any way to post the data in the form of an image with using ConnectionRequest? Thank you for your help Snippet ConnectionRequest i'm using: ConnectionRequest myrequest = new ConnectionRequest(); myrequest.setUrl("http://www.xxxx.com/mobile

Can't use my own kestore with xcodebuild under Mavericks

房东的猫 提交于 2019-12-23 22:28:08
问题 I'm trying to migrate some iOS xcode build servers to use Mavericks which is essential for xcode 6 builds. However, invoking xcodebuild with code that used to work in mountain lion just doesn't seem to work anymore and results in: Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“provision name”) were found. Our build command is pretty standard and the

How do I hide/get rid the title bar on a Form? Codename One

☆樱花仙子☆ 提交于 2019-12-23 18:47:41
问题 How do I hide/get rid the title bar on a Form? I tried to do that by created a custom class of Form and override shouldPaintStatusBar() but it didn't work. The entire code is: public class SplashScreenOp { private Resources theme; private Form splashForm; public Form getForm() { return splashForm; } public SplashScreenOp(Resources theme) { super(); this.theme = theme; } public final void show() { splashForm = new Form(new BorderLayout()); Image splashScreenImage = theme.getImage("splashscreen

Codename One showNativePicker is not displaying

陌路散爱 提交于 2019-12-23 05:37:22
问题 I have searched for simple examples of using a picker without any luck. I would like to have my picker pull from a set of strings for the user to choose from, but I can not seem to even get the following to display. Long now = new Date().getTime(); Date date = (Date) Display.getInstance().showNativePicker(Display.PICKER_TYPE_DATE, cal, now, null); edit : added code block 回答1: You should use the Picker class and not that API directly. Native picker is only supported for some specific types of

Cannot add Gradle dependencies to my Codename One Project

…衆ロ難τιáo~ 提交于 2019-12-23 04:35:06
问题 I'm building a simple online app with Netbeans using Codename One, and I wanted to use Ably for internet communication, but I'm having trouble importing the Ably API. Ably's site tells me that I need to add the line compile 'io.ably:ably-java:1.0.0' to the build.gradle dependencies section, but there is no build.gradle in my project. After seeing this question, I added a new build hint with gradleDependencies as the key and compile 'io.ably:ably-java:1.0.0' as the value. When I try to run the

Can't build anymore : OutOfMemoryError Java Heap Space

☆樱花仙子☆ 提交于 2019-12-23 04:13:12
问题 I can't build any app anymore : Your build size is: 23552kb Sending build request to the server, notice that the build might take a while to complete! Sending build to account: xxxxxx@gmail.com C:\workspace\nutriplanning\build.xml:101: java.lang.OutOfMemoryError: Java heap space In pricing it said 50mb build jar size Two minutes before I send an other built for iOS (bigger) and it works. Now I can't build neither iOS or Android. I already tried to increase memory settings on Ant with no

codename one nfc beacon

谁都会走 提交于 2019-12-23 03:46:09
问题 i am trying to do some tests with nfc and beacons with Codename One. I'm reading that Codename One doesn't support them on some old posts, any news about it? It seems that the only way is going on native but i'm totally new to it. Any suggestions where to start or any hint? Thanks in advance 回答1: You might look at the source code for a couple of CN1Libs at http://www.codenameone.com/cn1libs.html There you can see some of the native code implementations. It is more challenging to write a