12-01-2008 02:46 PM
I am attempting to use the _blackBerryVersion attribute in .alx files to select modules based on OS version. I've been using section 17 in 4.6.0 of the developer guide and the .alx appendix section as a reference.
I can't seem to get the desktop manager to recognize the file. When I select the file, the desktop manager claims "No additional applications designed for your device where found".
I've tried several things: renamed attribute to blackBerryVersion, added empty directory tags to the fileset tags, various combinations of case for attribute names, nothing seems to help.
If I remove the fileset blocks with the _blackBerryVersion tags, the desktop manager will recognize the .alx.
Desktop Manager version: 4.2.0.10
My alx file:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> <loader version="1.0"> <application id="com_sona_myapp"> <name>My App</name> <description>My App Description</description> <version>1.0</version> <vendor>Sona Mobile Inc</vendor> <copyright>Copyright (c) 2006 Sona Mobile</copyright> <fileset Java="1.0"> <files> common1.cod common2.cod common3.cod </files> </fileset> <fileset _blackBerryVersion="(4.1.0,4.2.0]" Java="1.0"> <files> special2-1.cod </files> </fileset> <fileset _blackBerryVersion="(4.2.0,4.2.1]" Java="1.0"> <files> special2-2.cod </files> </fileset> <fileset _blackBerryVersion="(4.2.1,)" Java="1.0"> <files> special2-2.cod special3-1.cod </files> </fileset> </application> </loader>
12-01-2008 03:03 PM
Found the problem. Desktop Manager does not like the XML declaration on the first line. Once removed, the file was recognized.
It is worth mentioning an oddity of the _blackberryVersion attribute. The case of this is very important.
_blackberryVersion == Correct
_blackBerryVersion == Incorrect
And despite the appendix clearing stating the attribute as blackBerryVersion (no leading underscore) for the application, directory, and fileset tags, this also clearly does not work.
12-04-2008 09:14 AM
02-19-2009 12:08 PM
Hello guys,
I want to write my own Jad to ALX Converter, because I want to learn more about the system behind it.
Now I have a small one running, but I see the complex ALX File from jiggak and I don't have any idea, how the jad file will be.
Can anyone please tell me schematic how such a jad file look out.
Thanks!
02-24-2009 10:32 AM
JAD file do not support the selection of a COD file based on the BlackBerry handheld software version. So there is no direct coloration for the ALX file above. If this is needed it can be handled by the web server by detecting the version and creating a JAD file that points to the correct COD files. The following article explains how to obtain the version from the BlackBerry Browser.
How To - Retrieve information about the BlackBerry Browser
Article Number: DB-00435