Thanks for the response Stoyan. I like having the UI preserved so I 
don't want to toss everything down to the root. I just want to stop 
some worker threads when going into the background.


>See if "clearTaskOnLaunch" [1] is not what you're looking for.
>
>[1] http://developer.android.com/guide/topics/fundamentals.html
>
>Cheers
>
>On Tue, Mar 24, 2009 at 12:57 AM, Ward Willats <[email protected]> wrote:
>>
>>  Is there a way to tell when my task gets put on the back of the UI
>>  stack (user pressed "home" say?) I have some resources I'd like to
>>  free when not foregrounded.
>>
>>  The lifecycle routines seem dicey to use to try and infer this.
>>
>>  The "home" key does not seem to be passed to onKeyDown(), and
>>  moveTaskToBack() is never called by the system so I can hook it.
>>
>>  I can poll the ActivityManager for running activities with my task
>>  id, but hard to find a good time to call this.
>>
>>  Thanks
>>
>>  -- Ward
>>
>>  >
>>
>
>

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

Reply via email to