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
New Developer
rkao1
Posts: 40
Registered: ‎08-04-2008
My Device: Not Specified

shared library .cod file

Hi There,

 

Good morning to all. 

 

Got a question about managing common shared library between applications... I have multiple apps that all share one common .cod file (for fonts and other essentials). But there are cases where if application A get install first and then application B get install second, the application A would get wiped out... because in .jad file of both application, the RIM-COD-Module-Dependencies have the common library listed and also each .jad listing the common library in the RIM-COD-URL and RIM-COD-SIZE.

 

Is there a way to manage this better? IS there a .jad tag that says if dependencies is already installed, don't push down the common library cod?

 

Thanks in advance. 

Please use plain text.
Developer
marchywka
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: shared library .cod file

Can you post your jad contents? I have been doing this in two pieces, separate build and install for the library

and each app. Seems to work fine right now but I wrote an installer to manage it. This gives good flexibility but

is limited by inability to do a programmatic restart when I need to overwrite things.

 

Please use plain text.
Administrator
MSohm
Posts: 14,268
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: shared library .cod file

This is discussed here:  http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=3476&query.id=136...
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.
New Developer
rkao1
Posts: 40
Registered: ‎08-04-2008
My Device: Not Specified

Re: shared library .cod file

Here is an example of my .jad 
 
RIM-COD-Module-Dependencies:com_mycommon_library,net_rim_cldc,net_rim_pdap,net_rim_bbapi_mailv2,net_rim_bbapi_invoke,net_rim_os,net_rim_bb_framework_api
RIM-COD-URL: com_my_program.cod
RIM-COD-URL-1: com_my_program-1.cod
RIM-COD-URL-2: com_mycommon_library.cod
RIM-COD-Size: 40240
RIM-COD-Size-1: 30056
RIM-COD-Size-2: 17660
RIM-COD-Module-Name: com_my_program
 
Mark,
 
I was reading the link you sent...it doesn't seem to have closure... guperez, from the other post, i have the same problem. 
 
When he says it doesn't work, it happens to me as well. Basically the first program gets uninstalled and is erased. Icon is gone, module is gone... 
 
Is there a way to do this other than installing the library and then install the application? For now, I have a "combo" version for those user that wants both.....but really it is a pain.... 
 
Thanks in advance 
Please use plain text.
Administrator
MSohm
Posts: 14,268
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: shared library .cod file

Re-installing a library file should not remove any previously installed applications.

 

What browser are you using to install this (Internet Browser, BlackBerry Browser or WAP Browser)?  What BlackBerry model and handheld software version are you testing on?  You can find this under Options, About on the BlackBerry.

 

Can you provide example URLs to applications that reproduce this?

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.
New Developer
rkao1
Posts: 40
Registered: ‎08-04-2008
My Device: Not Specified

Re: shared library .cod file

Mark,

 

It is on a Bold BlackBerry Browser OTA install. My users have the Bold and I just tested with OS 4.6.0.99.

 

Thanks.

 

Please use plain text.
Administrator
MSohm
Posts: 14,268
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: shared library .cod file

Can you provide a link to your JAD files that trigger this behaviour?
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.