Welcome!

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

Reply
Developer
javed001
Posts: 43
Registered: ‎01-21-2009
My Device: Pearl 8100

How to prevent installation on lower Blackberry models

Hi,

I am developing blackberry application for version 4.2 and higher so I want to prevent the user who are having an older model than 4.2 from installing my software. How to pop up a message for those users while installing.

 

Please use plain text.
Developer
peter_strange
Posts: 19,599
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to prevent installation on lower Blackberry models

If you are planning an installation over the air, this post will tell you what you need to know.

 

If you are planning installation another way, let us know.

 

Wireless pull

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=21540#M21540

Please use plain text.
Developer
Posts: 432
Registered: ‎02-23-2009
My Device: Not Specified

Re: How to prevent installation on lower Blackberry models

You can check the user agent. Check this Knowledge base article:

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800878/800733/How_To_...

 


Press the kudos button to thank the user who helped you.

If your problem was get solved then please mark the thread as "Accepted solution".

 

 

Deepesh Gupta
Please use plain text.
Developer
davidmccormack
Posts: 168
Registered: ‎11-01-2008
My Device: Galaxy S II
My Carrier: Meteor (Ireland)

Re: How to prevent installation on lower Blackberry models

The problem with this approach is that many BB users out there change the 'Browser Identification' browser option so that the browser pretends to be IE. This has messed us around in a couple of places where we tried to be too clever on the server side when doing an OTA install.
Please use plain text.
Developer
javed001
Posts: 43
Registered: ‎01-21-2009
My Device: Pearl 8100

Re: How to prevent installation on lower Blackberry models

So what is the solution then? User may install the software through USB port also. can we do some modification in the JAD file etc tocheck the BB OS?
Please use plain text.
Administrator
MSohm
Posts: 14,281
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: How to prevent installation on lower Blackberry models

You can specify the versions supported by an application in its ALX file.  This also allows you to specify what COD file to load for different versions, allowing you to distribute a single ALX with multiple COD files and have Desktop Manager install the appropriate ones.

 

How To - Create a single .alx file to install multiple versions of an application
Article Number: DB-00028

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800651/How_To_...

 

There is no equivalent parameter for JAD files.  When installing using a JAD file it is up to the web server to determine the version of BlackBerry handheld and point to the appropriate COD files.  The following link explains how to identify the BlackBerry Browser.

 

How To - Retrieve information about the BlackBerry Browser
Article Number: DB-00435

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800878/800733/How_To_...

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
Please use plain text.
Developer
yog123
Posts: 51
Registered: ‎07-15-2008
My Device: Not Specified

Re: How to prevent installation on lower Blackberry models

 

Hi ,

 

After going through the ----

 

How To - Create a single .alx file to install multiple versions of an application 

Article Number: DB-00028

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800651/How_To_...

 

so according to doc i can use tags defined inside the <OS> tag so i decided to use tag named KeyboardType tag inside my alx to fulfill my req.

 

In my file structure i have folder 4.6 and 4.7 along with .alx file as :::

 

 

<fileset _blackberryVersion="(4.0.2,4.7.0]"  Java="1.17">

<directory >

4.6

</directory>

<files >

1.cod

 

</files>

<files >

2.cod

 

</files>

<files >

3.cod

 

</files>

 

</fileset>

 

<fileset _blackberryVersion="(4.7.0,)" KeyboardType="Virtual" Java="1.17">

<directory >

4.7

</directory>

<files >

1.cod

 

</files>

<files >

2.cod

 

</files>

<files >

3.cod

 

</files>

 

</fileset>

 

<fileset _blackberryVersion="(4.7.0,)" Java="1.17">

<directory >

4.6

</directory>

<files >

1.cod

 

</files>

<files >

2.cod

 

</files>

<files >

3.cod

 

</files>

 

</fileset>

 

 

I have tested above alx with different devices having OS versions from 4.0 to 4.7 with DM 4.7 .

 

But second fileset never gets executed because KeyboardType tag never gets read by DM (My Guess!!)

 

For my requirements i want a common alx which can be used for touch and non-touch devices running OS 4.0 to 5.0.

 

Waiting ......

 

Please use plain text.