11-02-2011 10:10 AM
As per the how, this is where it becomes more difficult. It really depends on how the external library is distributed. Is it compiled code, or is it a compile-time library and a cod file?
If its compiled code the answer is easier, you simply need to run it through the pre-verifier first and then include it in your extension.
If its a compile-time jar then you must specify it in your library.xml like so (stolen from the BBM extension) as a dependency. This way it will be compiled against but not included. Then you must load the library cod file as well as your app on to the device.
<extension id="blackberry.bbm.platform"> <entryClass>blackberry.bbm.platform.BBMPlatformExt
ension</entryClass> <dependencies> <jar path="net_rim_bb_qm_platform.jar" /> </dependencies> </extension>
11-02-2011 12:54 PM
Thanks for your answer!
After looking at this thread http://supportforums.blackberry.com/t5/Java-Develo
I managed to get it to work.
Setps to add the "lib.jar":
11-02-2011 01:25 PM
Just so you know, we now traditionally advise you put the extension in the ext folder of the SDK as opposed to a jar in the project. It will mean a few extra values in the config.xml but it allows you to manage the same API across multiple apps more easily.
Also want to add your extension to our community API repo?