2010/06/16

Get your Blackberry app version programmatically

Let's say you want to add a 'About' dialog in your application and you want to show current application's version.

Sounds easy, right? Well, not exactly. In BlackBerry there could be several apps per COD file, called ‘modules’, so you have to traverse them to find your own module. Then there’s the case with simulators which are not close to the real device and therefore cause many issues, so you have to add a special case for them… All this sums up to the following piece of code:



No comments:

Post a Comment