It seems like you want to check if any Activity from your app is visible to
the user. There is no easy way to do this except for checking in each
Activity. Or you can do what the Messaging app does, and show the
notification regardless of whether the Activity is visible to the user or
not.

2008/9/22 Tauno T <[EMAIL PROTECTED]>

>
> Hi all!
>
> A quick question - is there a way to determine if an activity is
> visible to the user or not? I'd like to display a notification to the
> user but only then when the user is not seeing any of my Activities.
>
> I figure that one possibility is to raise a flag in onResume() and
> lower it in onPause() but it's not the best solution for me (since the
> app has  way too much Activities in total and implementing this in
> every one of them "manually" seems like a silly thing to do)
>
> Tauno
>
> >
>

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