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
Developer
spring_suvarna
Posts: 330
Registered: ‎02-25-2009

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.

Please use plain text.
Developer
rcmaniac25
Posts: 1,789
Registered: ‎04-28-2009
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)?

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo 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.
Please use plain text.
Developer
spring_suvarna
Posts: 330
Registered: ‎02-25-2009

Re: Device does not restart on application deletion.

Its a standard application deletion.

Please use plain text.
Developer
rcmaniac25
Posts: 1,789
Registered: ‎04-28-2009
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.

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo 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.
Please use plain text.
Developer
spring_suvarna
Posts: 330
Registered: ‎02-25-2009

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?

Please use plain text.
Developer
BB-Dude
Posts: 516
Registered: ‎07-23-2010

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.

Please use plain text.
Developer
rcmaniac25
Posts: 1,789
Registered: ‎04-28-2009
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.

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo 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.
Please use plain text.
Developer
BB-Dude
Posts: 516
Registered: ‎07-23-2010

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!

Please use plain text.
Developer
rcmaniac25
Posts: 1,789
Registered: ‎04-28-2009
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.

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo 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.
Please use plain text.
Developer
ekke
Posts: 940
Registered: ‎04-08-2010
My Carrier: 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
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.