-5

Hi i need a code for comparing blackberry software version. if blackberry device software version is higher than OS 6 then continue the app otherwise prompt user dialog showing upgrade OS first and exit the application.

2 Answers 2

3

There's a better approach than you described.

Use preprocessor and alx-task to build different application versions for different OS version.

Then you will have one alx + set of folders with cod files, where every folder has cod files for particular platform version. Alx file will contain directives to install cod files from the suitable folder, according to the connected device OS version.

2
  • no this is not required.. i want app to check the blackberry version than compare with a list of bb os version if current version is greater than bb OS 6 than continue otherwise exit app..
    – Omer
    Sep 7, 2012 at 23:51
  • note that an application made with old SDK would not appear good on newer RIM OS versions. Yes it will run, but it will not appear good.
    – user784540
    Sep 8, 2012 at 6:14
3

You can use the following:

String deviceOS = DeviceInfo.getPlatformVersion();
1
  • please provide a complete solution as to compare this version with other blackberry version list.
    – Omer
    Sep 6, 2012 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.