BlackBerry project version number
I have a BlackBerry Java project in Eclipse. It has version number written down in four different spots:
in the project properties, under "BlackBerry Project Settings/General"
in the JAD file, under MIDlet-1 (?)
in the JAD file, under MIDlet-Version
in the ALX file, under <version> (?)
And they seem u开发者_运维知识库ncorrelated. Changing either of these affects none of the rest. The third one is what the users sees during over-the-air setup and under Options/Advanced.
Questions - why do we need all these? Are there contexts where numbers 1, 2, 4 come up? It's my understanding that the ALX is generated during compilation - where does the version # come from? Is there a way to learn at least one of those programmatically (without signing the app)?
EDIT: #1 comes up in the ApplicationDescriptor.currentApplicationDescriptor().getVersion().
Should all be managed with the Blackberry_app_descriptor file from the new Blackberry plugin. I Just checked it with JRE 4.5 (in the newest plugin setup) and its all there.
(More info in your comments of course)
To get the information programatically, you need to use ApplicationDescriptor.getVersion()
Link for the version you are using.
精彩评论