In Blackberry device if we go to
Options ---> Date/Time ---->Use Network Time --> No
Now when we select date or time a very stylish selector opens up that
enables user to set date and time.
Can i use such control in my app.
I saw such in Storm 9530
Any idea please help!!!!!!!!!!!!!!!!
if you have seen in 5.0 os, its DateTimePicker.
even if you use old DateField, it will look different in different os.
That is the net.rim.device.api.ui.component.DateField that is included in OS version 5.0 (and since you saw it on a Store a assume also 4.7). Previous OS versions use the older UI element. So I guess your answer is it depends on the OS version your program will be installed on.
Related
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().
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
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 THINK I know the answer to this, but can't find any plain English to confirm it.
I am currently porting an Android app to blackberry. I've gotten over most problems, but ArrayLists are the one I'm stuck on, since they were only introduced in 1.5 .
Can anyone tell me if it is possible to develop for newer blackberry devices, while having java compliance set to 1.5?
I'm thinking that J2ME is the deciding factor with blackberry. So if that only supports 1.3, then EVERY app made for blackberry must be written in eclipse with a compliance level of 1.3 set, and any newer blackberrys would be the same, and therefore ArrayLists are impossible.
Can someone confirm this for me?
Thanks.
PS Would it be possible to create my own ArrayList class, with the angle brackets < > as well?
You have to use Java 1.4 compliance for BlackBerry because they use J2ME.
Use Vector for your dynamic list. You can't use Generics<>.
If I develop Blackberry application for OS version 6.0, will the application be compatible with OS version 4.5? If not, is there some way to port the application easily?
If you develop against a specific SDK (eg 6.0) your application will only be deployable to devices that use the matching OS version (6.0 in this case).
In order to develop applications that specifically target different OS versions, you must build separate deployable binaries for each version. Alternatively, you can build for the lowest common denominator -- if you want to support OS 4.5, build for 4.5 and your app will run (though not always gracefully) on all later BB OS versions.
Two open source projects that you can use for examples are BBSSH and LogicMail.
Neither of these uses preprocessor directives, however both take slightly different approaches to managing multiple target OS's; which solution is more appropriate is best determined by your own needs. Both use ant-based builds; and I think both target from OS 4.5 to 6.0. (Older versions of LogicMail target back to 4.1 I believe)
Build scripts can be found here:
BBSSH SVN (build.xml,build-impl.xml, build.properties)
LogicMail SVN (build.xml, build.properties)
Both projects can also be looked to for specific methods of handling things like utilizing features introduced in later OS versions seamlessly to your users -- either providing a custom implementation prior for earlier versions, or disabling the functionality as is appropriate.
Finally a quick note: if you continue to not accept valid answers, you'll soon find that people are less willing to answer you.
Try to use "Preprocessor Directives" to support multiple blackberry devices.
I m not 100% sure but probably not, because version 6.0 uses newer libraries.But try develope in lower version os and it will run at higher version.
hope it helps
Wblade
For an example of a quality open source project that supports many different BB OS versions, check out LogicMail.
The ant build.xml loads platform-specific classes based on the target:
<if><isset property="jde460.home"/><then>
<fileset id="bb460_fileset" dir="..">
<include .../>
...
As far as I can tell, this project does not rely on the preprocessor.