08-27-2010 02:32 AM
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.
08-27-2010 09:19 AM
Is the goal of the application to force a restart or is this standard application deletion (the user clicks delete)?
08-30-2010 01:21 AM
Its a standard application deletion.
08-30-2010 02:02 PM
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.
08-31-2010 02:23 AM
... 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?
08-31-2010 06:46 AM
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.
08-31-2010 02:24 PM
@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.
09-01-2010 06:28 AM
Good to know that an application can be reinstalled without restarting the device if and only if the application didn't run yet. Kudos!
09-01-2010 11:52 AM
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.
09-01-2010 12:01 PM
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