How to change sdk application version in blackberry

I am using Eclipse to develop a BlackBerry application for BBOS 6.0. Now I want to support BBOS 5.0 instead of 6.0. How to do it?

+4
source share
2 answers

You can develop using only one eclipse, not two (each for an OS version). And switch the compilation target to it. To do this, you must click on the JRE System Library properties in your project and add an alternative black version of JBB via Installed JREs - Add and specify the folder inside your other installed Blackberry JDE.

Then you can switch OS5 and OS6 from the Properties for JRE System Library window in two clicks.

Regarding the use of OS6-oriented classes and concepts, you should use #preprocess and #ifdef BlackBerrySDK6.0.0 to compile code in versions 5.0 and 6.0.

+4
source

The first thing you need to do is install version 4.0. And compile your code with version5.0 Jde. It will work fine if you have not used the Updated API or some class which have been added into version 6.0 and later . For example, Menuitem I did not use it, so I do not understand what classes are added in Version6.0, you can compare it with a document. one refrence I attach here see MenuItemconstructor it for 6.0 , and this one for 5.0 compare the constructor of both.

+1
source

Source: https://habr.com/ru/post/1380342/


All Articles