I have to build a app that should support Blackberry OS 5,6,7. My question is would one app would be enough or do I have to build 2 separate apps?
i.e 1 compatible with OS 5 and 2nd with OS 6 and 7.
Also I would like to know if there are any open source graph API's for Blackberry 5,6,7 or not!
Please guide me!
Thanks
You may build for 5, 6 and 7 at one time. Use pre-processor directives to avoid compilation problems for multiple OS's. Then you would need to check separately for UI items depending upon the screen resolution and OS version. One quick check can be Display.getWidth().
Related
Is there any way to compile BlackBerry Java code for different sections using eclipse ?
There is a class named LocationInfo available in BB version OS 6.0 onwards.
I get a compilation error if try to compile for OS 5 (because LocationInfo is
not defined)
But if I compile my code for OS 6, I wont be able to deploy on any 5 based devices.
I want to my code base to be of version 5 and support the methods of Locationinfo (which is available only in 6.0 onwards).
Is a sectional compile possible or is there any work around for this ?
Thanks
Try the BlackBerry preprocessor
Coding for Multiple Blackberry Devices - Using Preprocessor Directives in Eclipse
The OP wanted to know whether there was a way to a class available in os 6.0 , in an os 5.0 device. The blackberry processor does help in creating builds for different versions, but doesnt answer the question. The OP would like to know whether there is the blackberry equivalent to androids "Support Package" or the "Compatibility package" which allows to use APIs that are not available for older platform versions.
Sorry , but there is no similar package on blackberry which you can use to address your issue.
You will have to use blackberry pre processor and then develop features for different devices based on the os they provide. Later OS's will have more apis you can play with, so you can implement better features on those. In earlier OS's you are stuck with using the restricted set of api methods, and hence some features may not be implemented on those.
Hope this helps
I have an App. that was built for BB OS 6. Wanted to know if it will work on the new OS 7 without any glitches.
If not, can it be ported without re-doing the entire thing.
It will work but as the devices probably will have different resolutions maybe you will have to made some code changes so de fields adapt better to the screen even if the code behave dinamically.
You can see it if you try your app in the simulator.
It will work without making any changes, as Blackberry 7 has backward compatibility for the builds. You might get some regulations issues, if your program is coded to behave dynamically then no issues.
Also, You don't really need to build again. Just go ahead and install on Blackberry 7. It will work.
A newb question and one I haven't been able to see much advice on, but is it possible to create a single package that will install and run on both blackberry OS5 and OS6 devices?
I want to avoid preprocessing or creation of two different COD files.
I am not using anything special that differs between the two OS's (afaik!)
Yes, absolutely. So far, RIM has made all of it's OS revisions backwards-compatible. So anything you write against any given OS version will work on that version and all newer versions.
That's not to say that you won't run into funny quirks when moving to newer OS versions, but your code will execute without recompilation. You just can't take advantage of any of the newer OS's API changes without doing preprocessing.
Basically in this case you just should not use APIs which were added in OS6.
I am trying to target a Blackberry application to multiple devices, since there are advanced graphics needed. I would like to avoid writing multiple versions (as suggested here). The target is OS version 5.0, and so far it works as expected on storm2 simulator.
The issue is when I run it on the Bold simulator, the EditFields are not accepting input from the keyboard.
I can't seem to find any example how actually go about supporting multiple devices.
Thanks,
MD
There are a lot of good links in this question.
In particular, Marc's answer contains links to actual projects which support many OS versions that you can explore and mimic.
Use only the components available to 4.5 and it should work on all different OS versions.
Or make your own custom components.
What is difference between Blackberry OS 4.6 and 5.0?
Thanks.
Two major differences that I've found are that SQLite does not work on anything below OS5.0 (though it only 75% works on OS5.0 anyway) and that BrowserField2 does not work in anything below OS5.
Really? Try to compile your code using a different JDK and see what happens :)
That's sort of a vague question. From the developers side you can look at the differences between the 4.6 API and the 5.0 API yourself. The major additions I noticed were the accelerometer classes and the ConnectionFactory.
From the user side you can google any number of articles on new features for 5.0. Here are a couple I found: BoyGeniusReports, PCMag.
If you tell us more about your application we might be able to tell you whether you'd likely need to use the 5.0 OS or not.