I don't think there aren't events to capture for task foregrounding
and backgrounding.  An individual activity can of course know when it
is being paused and stopped, but under normal circumstances the
activity doesn't always know why.

What is it that you need to do differently if the task gets
backgrounded then comes back?

Doug

On Nov 19, 7:32 am, Some Coder <[email protected]> wrote:
> Hi,
>
> I'm trying to write some initialization code for my app which
> differentiates between the cases when it it launched from scratch and
> when it it is resumed (i.e. the user launches the app, hits the home
> button, starts another task, then at some later time navigates back to
> my app).  From the doc:
>
> http://developer.android.com/guide/practices/ui_guidelines/activity_t...
>
> It looks like what I want to do is to detect when the "Task" for my
> application is resumed.
>
> What is the cleanest way to do this?  Is there an API for monitoring
> Task state?
>
> Any info would be much appreciated.
>
> -D

-- 
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