LocalActivityManager would be the class to look into Specifically,
getCurrentActivity () will return the current activity.

http://developer.android.com/reference/android/app/LocalActivityManager.html#getCurrentActivity()

Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 16, 6:49 pm, Don Tran <[email protected]> wrote:
> I want my background service to determine the active package or
> activity running.  Is this possible?
--~--~---------~--~----~------------~-------~--~----~
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