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
Posts: 105
Registered: ‎05-22-2008
My Device: Not Specified
Accepted Solution

ALX file range parameter [ , )

Hi,

 

I have a working ALX file with the following line

 

<directory _blackberryVersion="[4.2.0,4.6.0)">ver_42</directory>

 

My understanding, from looking at the sample in the development guide, is that this results in

any device that is

 

 >= version 4.2.0 and < 4.6.0

 

i.e to say from 4.2.0 thru 4.5.999

 

should use the code found in the ver_42 directory.

 

 

Is that correct ? Or does it mean from 4.2.0 through and **including**  4.6.0   ???

 

The example from the docs is attached below

 

Thanks.

 

<application id="application_id>">

...

<fileset _blackberryVersion="(,4.0)">

... modules for BlackBerry device software versions earlier than 4.0

</fileset>

<fileset _blackberryVersion="[4.0,)">

... modules for BlackBerry device software versions 4.0 and later

</fileset>

</application>

BlackBerry Development Advisor
Posts: 15,019
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: ALX file range parameter [ , )

[] brackets are inclusive (greater/less than or equal to).  () brackets are exclusive (greater/less than).

 

The sample you have below would be loaded on versions greater than or equal to 4.2.0 but less than 4.6.0.

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
Developer
Posts: 105
Registered: ‎05-22-2008
My Device: Not Specified

Re: ALX file range parameter [ , )

Thanks Mark,

 

If you look at this link, then there seems to be a contradiction in Example 1A and 1B with regards to how the operators work.

 

Infact, even if you just look at example 1B, the two lines with the range parameters seem to contradict one another.

 

 

My guess is that this is a documentation error in example 1B ??

 

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

 

BlackBerry Development Advisor
Posts: 15,019
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: ALX file range parameter [ , )

Yes, that needs a little fixing.  I'll get that taken care of.
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