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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 23
Registered: ‎05-18-2010
My Device: BB 8520
My Carrier: Vodafone
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
Posts: 15,889
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

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

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.

Highlighted
BlackBerry Development Advisor
Posts: 15,889
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

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.
Contributor
Posts: 22
Registered: ‎08-23-2011
My Device: blackberry torch-9800,bold-9700
My Carrier: airtel

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
Posts: 133
Registered: ‎04-30-2010
My Device: Curve 8520
My Carrier: T-Mobile

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
Posts: 1
Registered: ‎01-29-2014
My Device: Backberry Torch
My Carrier: Airtel

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
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Silent update and delete applications

I do not believe this restriction has changed.