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
Developer
Posts: 330
Registered: ‎02-25-2009
My Device: Not Specified

Device does not restart on application deletion.

Hi,

 

My device does not restart when i delete my application. I am using 5.0 OS.

 

In normal scenario device should restart. So what could be the reason for such behavior.

 

Are there any specific apis which if i use in my application will prevent device from restart activity?

 

Thanks.

Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Device does not restart on application deletion.

Is the goal of the application to force a restart or is this standard application deletion (the user clicks delete)?

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 330
Registered: ‎02-25-2009
My Device: Not Specified

Re: Device does not restart on application deletion.

Its a standard application deletion.

Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Device does not restart on application deletion.

Then you are lucky. Many apps require a restart after deletion but not all. Unless you want it to restart in which case you need to do something like have a system listener or something.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 330
Registered: ‎02-25-2009
My Device: Not Specified

Re: Device does not restart on application deletion.

... but in my case if i reinstall the app and try to run it, it gives me error "client says module handle 8318 not found". What could be the reason for this?

 

 

How to implement system lestener which will work for application deletion event?

Developer
Posts: 516
Registered: ‎07-23-2010
My Device: 9900

Re: Device does not restart on application deletion.

I think in your case you are deleting your application and then reinstalling it. This is in a way an update.

Updates do require the phone to restart in order for the new module to replace the old module.

I usually restart the device when a module is deleted. I think but I am not sure that deleting a module will only mark the module for deletion and the module is actually deleted on startup.

Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Device does not restart on application deletion.

@BB-Dude: That is a correct statement, the only exception when the app will be deleted and reinstalled with no restart is if the app/library was never used.

 

Example:

I install a app, only to realize I made a mistake in code. Recompile and reinstall. The app gets updated but no restart is required and I can run the updated application just fine. If I start the app, realize the problem, and THEN reinstall I will need to restart the device because the module is {not sure what to put here, cached?} and requires a restart to remove the old module and install the new one.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 516
Registered: ‎07-23-2010
My Device: 9900

Re: Device does not restart on application deletion.

Good to know that an application can be reinstalled without restarting the device if and only if the application didn't run yet. Kudos!

Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Device does not restart on application deletion.

Yes it is. I have had times where I wrote a app, tested on sim, then loaded on device only to realize that something I took for granted on SIM is not true on device (like code signing) and do {action here} and reloaded it. No restart needed.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 1,645
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Device does not restart on application deletion.

in some cases restarting doesnt work

I had to remove the battery and re-insert

then all works

 

this happened with app auto-started and many dependencies to libraries

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner