On Wed, Nov 2, 2011 at 2:51 AM, Aki <[email protected]> wrote:

> Apparently iOS provides some way to detect the
> application-going-to-background state (not sure though, never used iOS, but
> read something related to it in StackOverflow) . I think it is a good
> feature. Any reason why Android doesn't provide us a way to do this?
>

There is technically no such things as "application-going-to-background",
it's more like "another Activity has come to foreground". Even when you
press the home key, you're not really putting you application in the
background - you're bringing the Home activity to the foreground. So this
concept doesn't really make sense in Android. If you want to do what you
describe, you will have to use the "track each Activity method", painful as
it may be with your numerous activities.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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