Get the RunningTaskInfo through the ActivityManager
and do a name match for the activity name you want to exclude and send
the notification

-Dan

On Feb 12, 5:34 pm, pperotti <[email protected]> wrote:
> Hi, does anybody knows if it is possible to check if an Activity is at
> a moment of the time visible ?
>
> My question is because I want to implement a service and only invoke a
> different activity (by launching an Intent) only if the previous
> activity was visible. In case for instance, the user is in a different
> application I just want to send a notification.
>
> My problem is that I dont know how to determine if my application is
> being use at a particular time, so, I can properly move to the user to
> the right screen.
>
> Thanks !
> Pablo
--~--~---------~--~----~------------~-------~--~----~
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