[android-developers] Re: How do i check app close gracefully during shutdown scenario
I also wonder is there shutdown event in 2.0 maybe? I could save some service data to file, before shutdown. On Mar 13, 9:20 am, James Wang jameswangc...@gmail.com wrote: I think Not unregisterReceiver is no harm to system because power down. I believe the foreground activity's onDestroy will be called. As for others, there seems be no assurance. -- 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
Re: [android-developers] Re: How do i check app close gracefully during shutdown scenario
Did You tried this? http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN I also wonder is there shutdown event in 2.0 maybe? I could save some service data to file, before shutdown. On Mar 13, 9:20 am, James Wang jameswangc...@gmail.com wrote: I think Not unregisterReceiver is no harm to system because power down. I believe the foreground activity's onDestroy will be called. As for others, there seems be no assurance. -- 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
[android-developers] Re: How do i check app close gracefully during shutdown scenario
I think Not unregisterReceiver is no harm to system because power down. I believe the foreground activity's onDestroy will be called. As for others, there seems be no assurance. -- 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
[android-developers] Re: How do i check app close gracefully during shutdown scenario
Hi Mike, My question is very specific. Suppose an application say messaging is running on my device. At that time If I power off my phone, how do I know that the running app exit gracefully. I was looking into all the app code and found that in some cases (means in the onDestroy() call in some apps) unregisterReceiver(..) is not done. Is it a mistake ? or there is any meaning behind not calling this function. Thanks On Mar 10, 9:18 pm, Mike dg vinb...@gmail.com wrote: I don't think that waiting until shutdown to do anything is a great idea. You have no control over the speed of the shutdown or anyway to disable it. -Mike dg On Mar 10, 7:25 am,Kabitasan.k...@gmail.com wrote: Hi, Is there any procedure how to check all the apps getting closed gracefully during the shutdown scenario? Anybody has any idea please share.- Hide quoted text - - Show quoted text - -- 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
[android-developers] Re: How do i check app close gracefully during shutdown scenario
For what? -- 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
[android-developers] Re: How do i check app close gracefully during shutdown scenario
I don't think that waiting until shutdown to do anything is a great idea. You have no control over the speed of the shutdown or anyway to disable it. -Mike dg On Mar 10, 7:25 am, Kabita san.k...@gmail.com wrote: Hi, Is there any procedure how to check all the apps getting closed gracefully during the shutdown scenario? Anybody has any idea please share. -- 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