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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
dev1982
Posts: 4
Registered: ‎06-19-2012
My Carrier: VODAFONE
Accepted Solution

Install or unistall cod file without user intreaction...

Hi

 

I need your help in doing some  R&D work.

I am trying to insall or uninstall a cod file without user interaction, is this possible to install or unisnatll a cod file without user interaction.

 

Please help me ...

thanks

dev

Please use plain text.
Developer
peter_strange
Posts: 17,634
Registered: ‎07-14-2008

Re: Install or uninstall cod file without user interaction...

The short answer is no.

 

The best situation you can get is if you have an application on the BlackBerry that acts as an installer and knows where (on the web presumably) the programs it wants to load are.  It could then download and install them, though the user would still gets the prompts to restart and for permissions when the applications first runs. 

 

But the user would have had to install the loading program first. 

 

What are you trying to achieve here?

Please use plain text.
New Contributor
dev1982
Posts: 4
Registered: ‎06-19-2012
My Carrier: VODAFONE

Re: Install or uninstall cod file without user interaction...

Hi peter thanks for your reply .

. but can use CodeModuleManager for creating a new module and save it.

 

I have downloaded cod file form Sd card created a module.

 

  int handle1 = CodeModuleManager.createNewModule(data.length, data, data.length);  
   CodeModuleManager.saveNewModule(handle1);

 

and its works...

Please use plain text.
Developer
peter_strange
Posts: 17,634
Registered: ‎07-14-2008

Re: Install or uninstall cod file without user interaction...

That is correct and that is how you could install a module once you have your 'installer' application in place.  So you can pick up your cods from the internet or from the SD Card.  The question is, how do you get this 'installer' code on to your BlackBerry in the first place. 

Please use plain text.
New Contributor
dev1982
Posts: 4
Registered: ‎06-19-2012
My Carrier: VODAFONE

Re: Install or uninstall cod file without user interaction...

ok yes ..in our case we have a installer application in blackberry device .

but now my problem is  ...how to  notify my device(installer app) that download the new cod  from XYZ location. Provided that i do not have BES infrastructure.  I am going through the push API notification but not found anyhting fruitful yet.

 

 

Please use plain text.
Developer
peter_strange
Posts: 17,634
Registered: ‎07-14-2008

Re: Install or un-install cod file without user interaction...

I thought PUSH would do it. 

 

Alternatively, just poll.  Say have a known place that lists all the cods that should be on the device and where they are to download if not.  Check this once a day, would not be too bad. 

Please use plain text.
New Contributor
dev1982
Posts: 4
Registered: ‎06-19-2012
My Carrier: VODAFONE

Re: Install or un-install cod file without user interaction...

Thanks

 

but for push i think we need Blackberry infra or BES...we dont have BES or Blackberry infra...

Please use plain text.