Wednesday, March 6, 2013

Re: [android-developers] Re: how to tell why Activity.onPause() is called

On Wed, Mar 6, 2013 at 8:16 AM, dnk <dnkoutso@gmail.com> wrote:
Use http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()

Gets called only when the user has decided to leave instead of another app coming in the foreground.


Thanks, I had no idea this exists.  Looked promising at first, however on second thought this won't help me probably as the tasks I need to perform (stop threads, music, save data, ...) must be done whether leaving the app is a user's decision or not.
 

--
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment