What I am looking for:
I want to package my Application for different blackberry os versions (5,6 and 7). So that the user doesn’t have to know what version he needs and just installs the app from the website.
What I have already found out:
- I need to look in the web directory (there are three directories atm. one for each version)
- I need a JAD file instead of an alx file, since it’s a web-distribution (also in web there is no alx so that’s fine so far)
What I think is my problem:
I do not know how to package those three directories in the web directory. I think I need just one folder and a JAD file that somehow manages what version of my app is being installed?
Can you please give me some insights.
If your app only uses the OS5 API
If you develop your app using the OS5 BlackBerry JRE (Java Runtime Environment) then it will run on all devices running OS5, 6 and 7. The BlackBerry OS is backward compatible with previous OSs, so you don’t have to worry about packaging for individual OS versions.
As far as packaging the app up, you just need to upload the appname.jad and appname.cod files in deliverables/Standard/5.0.0 to your web server, then direct your users to it from their BB phone, they should be prompted to download and install it.
If your app uses multiple APIs
You will need to distribute a cod and jad file for each API version you are using. Upload these to your web server then use a script to detect the user’s OS version. Here’s a PHP script to do this:
You might want to hack around with this a bit to remove the
echostatements.When developing your app for multiple APIs there are 2 approaches: