0

I am using Fragment in my android app development.

I would like to clear the back stack of FragmentTransaction when user shutdown the phone during using my app.

How can I handle phone shutdown event in my app code?

Leem.fin
  • 40,781
  • 83
  • 202
  • 354
  • Why would you want to treat a phone shutdown differently from a normal exit of your application? – dtech Mar 19 '12 at 09:59
  • Question was already mentioned here: http://stackoverflow.com/questions/2190126/is-there-any-way-to-get-a-notice-when-a-user-power-off-their-android-phone – Till Mar 19 '12 at 10:01

0 Answers0