While developing and debugging an app with Eclipse and running the app
on the physical phone via the USB cable, it is easy to forget to first
manually quit the app before launching a freshly recompiled APK from
Eclipse. I find that the system then brutally calls exit(1) on the
running app before launching the new APK file, meaning that (as
confirmed by Log output) none of the onPause(), onDestroy() etc are
called to let the app properly finish before (re)installing and
running the new APK. This then for instance leads to frequent severe
G1 camera lockups as one does not get a chance to first release the
camera, and only a power-down then brings the camera back.

Is there a way to have some function called before the exit(1) takes
effect? I tried  addShutdownHook(), but it did not work either.
Eclipse seems to just kill the running process.

Thanks


01-27 20:39:28.232: DEBUG/dalvikvm(5405): Calling exit(1)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to