codenameone

Why do I get a different behviour in Codename One simulator than on a real Android device?

会有一股神秘感。 提交于 2019-11-29 08:41:20
I am trying to figure out why I get a different behaviour in the simulator (iPhone, Nexus, Nexus5, ... skins ) VS on an Android real device with the following code (my goal is to draw a text over a background image and save the whole in background image resolution) : Please note that the GUI was done with the Designer. protected void beforeMain(Form f) { // The drawing label will contain the whole photo montage f.setLayout(new LayeredLayout()); final Label drawing = new Label(); f.addComponent(drawing); String nom = "Hello World"; // Image mutable dans laquelle on va dessiner (fond blancpar

How does Codename One work?

旧街凉风 提交于 2019-11-26 09:38:46
问题 I\'m prospecting alternatives to develop for multiple mobile platforms, and have found Codename One, that uses Java as lingua franca , instead of HTML/CSS/JS or scripting languages. What I couldn\'t find is how does it work. Does it bundle a JVM with the application for iOS and Win7, and uses Dalvik in Android? Does it translates source code to native, and do we have access to this source code? Is there other magic, considering they promise \"no compromise\"? What limitations should I be