Does CN1 have a handy way to get a build number?

38 views
Skip to first unread message

eos

unread,
Sep 1, 2013, 6:35:17 PM9/1/13
to codenameone...@googlegroups.com
Its very useful to have a version number and/or a build number somewhere on the GUI, but this is notoriously difficult to get with Eclipse.

Does CN1 have anything like this as part of its build process?

Thanks!

Shai Almog

unread,
Sep 2, 2013, 12:03:07 AM9/2/13
to codenameone...@googlegroups.com
There is Display.getProperty which returns most useful information including app version number (not build number!).
There is a unique key per build which we need to identify the build in the server, its not a number but a server generated UUID. It will not work for you in the simulator as a result of that. You can use Display.getProperty("build_key") to get that.
Reply all
Reply to author
Forward
0 new messages