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
Contributor
basiliojohn
Posts: 23
Registered: ‎05-18-2010
My Device: BB 8520
Accepted Solution

Silent update and delete applications

Hi all,

 

Just wondering whether it is possible for a BlackBerry application to be able to update or delete itself, without, if possible, giving any error/precautionary messages. It is possible to do so in J2Me using special extensions from specific vendors, but not so in generic j2me. In that case, the j2me application makes a call to some native API, requesting to update/deleting itself, and then exiting itself for the native OS to do the needful. Is such a solution, or something similar, available for BlackBerry applications? Across the OS versions?

 

Thanks,

 

Basilio J V D'souza

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Silent update and delete applications

An application can't update itself, but you can programmatically update another third party application.  

 

Programmatically install and upgrade applications

http://supportforums.blackberry.com/t5/Java-Development/Programmatically-install-and-upgrade-applica...

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
Contributor
basiliojohn
Posts: 23
Registered: ‎05-18-2010
My Device: BB 8520

Re: Silent update and delete applications

Thank you for your suggestions. Will try doing using suggested approach. However, there still will remain the issue of deleting the 3rd party application.

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Silent update and delete applications

You can use the CodeModuleManager class to delete applications.
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
Contributor
aditigarg
Posts: 22
Registered: ‎08-23-2011
My Device: blackberry torch-9800,bold-9700

Re: Silent update and delete applications

I saw ur post stating " An application cannot upgrade itself".

 

Is this functionality now available in BB OS 5.0 or 6.0.

 

I have a requirement to update my application when its new version is available. I tried the sample code but it upgrades other third party applications n not the one in which I have all this code of upgrading. I was wondering if RIM has provided us the functionality to upgrade an app itself now?????

 

Please reply ASAP.

Developer
paulkayuk
Posts: 133
Registered: ‎04-30-2010
My Device: Curve 8520

Re: Silent update and delete applications

If you think about it you will see that the functionality has 'always' been there.

 

Your Application A detects that a new version is available, and starts your Application B before terminating.

Your Application B then performs the upgrade of your application A, then re-starts the upgraded application A before terminating.  Job Done.

New Member
Headphone
Posts: 1
Registered: ‎01-29-2014
My Device: Backberry Torch

Re: Silent update and delete applications

Well, I need Application A to upgrade Application A, it that possible in BB OS 7.1 now? The app self upgrading itself.

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Silent update and delete applications

I do not believe this restriction has changed.