How to launch the app(android) when the device startup?
I want my app has to run in background even the app is not open.To overcome the issue,i want to launch it on device startup,but i cannot find any solution.Please help me to resolve the issue in codenameone.
While launching on startup is doable in Android it is not doable in any other OS. Background execution is also severely limited outside of Android and is now facing restrictions in Android too thanks to project doze.
In that light you can use native interfaces to do this on Android. We support background use cases that work on iOS/Android as explained in the developer guide.
Related
Recently I created a desktop app with Codename One, that through REST calls implements the backend of a website. Since the graphics were relatively very simple, I could use includeNativeBool: false; and create the graphics from scratch, in order to have the desired graphic look.
Soon I will have to make another desktop app with Codename One, both for Windows and MacOS. In this new app, however, the graphics will be more complex and I don't think it's a good idea to create it from scratch. I wish I could use includeNativeBool: true; and have iOS graphics as a starting point (both on Windows and MacOS). Is it possible?
Note that when I tried to use the desktop.theme build hint it didn't work, but maybe I didn't understand how to use it.
You need to pass a theme file to the desktop.theme build hint. So just download the native iOS theme and place it under your native/javase directory. Then set the build hint as such: desktop.theme=iOS7Theme.
I have created app using codename one which can be installed on same device two times with dual app features which provided by android.
I dont want to allow my app to install multiple time on same device so I want that my app should not support that dual app feature so what should i do for that?can you help me to solve this problem?
thanks in advance.
It doesn't seem to be an Android feature but rather a vendor customization. As far as I can tell the whole idea is to hide the fact that this is the same phone from the app developer so there is probably no easy way to detect this.
If you find native Android code that detects it I can explain how you would do this in Codename One.
As described in the blog post THE 7 SCREENSHOTS OF IOS with an IOS build a Codename One app is run on the build server to create screen shots for the possible resolutions of devices.
I would like to detect whether the app runs on the build server. Is that possible and what way of detecting that would You recommend?
I would suggest enclosing screenshots in the native iOS directory as explained in this developer guide section. It would probably be the simplest solution.
I developed a sencha app and ported it to IOS and Android successfully.I need to build a desktop application from the same.I used sencha's packager and it was a success.Unfortunately it was a trial version.
I used Tide SDK but the sencha list UI is not perfect on scrolling.And store data is not getting sometime.
Can anyone suggest other opensource packagers to make my sencha app to desktop application.
Pls help me.I was looking this for long time.
Thanks in advance.
you can try intel's node-webkit, it is one of the other tools that people are switching to. it's open source.
https://github.com/rogerwang/node-webkit
Absolutely, try out Brackets shell. We use that to create desktop apps on Mac and Windows. The wiki explains how to build your apps nice and simple
https://github.com/adobe/brackets-shell
https://github.com/adobe/brackets-shell/wiki/Building-brackets-shell
have fun
I create a new netbeans codename one project and it runs on codename emulator but when i build the broject the application does not work on j2me device because there is no MIDlet.
there is an option called send j2me build but it is not available in my country i cant even signup for some
political reasons how to solve this problem ?
thank for any help.
It seems that Google App Engine which we use for infrastructure is blocked in some countries. This is entirely out of our control. We are looking into the possibility of replacing the Google App Engine server architecture but that would take some time.
Technically you can build Codename One applications like you build LWUIT applications but it requires quite a bit of know how.