How to detect build server runs? - codenameone

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.

Related

CN1 project not showing build hints and mobile properties on Windows10

I have copied the project from my old amchine to windows 10 machine. Application works without any problem on simulator. If I right click to see the properties, I don't see IOS, Android and build hints. Please advise if there is something I'm missing here.
This was removed ages ago in Codename One 5.0 but was deprecated before that. See https://www.codenameone.com/blog/removing-old-preferences.html
You should use Codename One Settings in the right click menu.

Codename one: Dont allow to create dual app on same device

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.

App launch on startup in codename one

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.

Sencha app packaging to desktop application

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

how to build j2me applications using codename one?

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.

Resources