Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 27
Registered: ‎02-12-2010
My Device: Torch 9800
My Carrier: Globe/Unlocked AT&T

Detect OS Version during Installation from an SDCard

Is it possible to detect OS version if you are installing a BlackBerry app from an SDCard with only the JAD and COD files?


I know it is possible to determine OS version if installing using an ALX or OTA but I haven't tried installing from internal/external memory using JAD with OS detection yet.

BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Detect OS Version during Installation from an SDCard

Not directly.  You could have your JAD file point to a COD file that is an installer application, which detects the OS version and then installs the appropriate COD files from the micro SDcard.  There is an OTA example that does something similar at the link below.  You could adapt it for SD card use.


Programmatically install and upgrade applications

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker