Wouldn't that only retrieve the current activity of my own process? I want a background service to determine at the given time what's the current package / activity is running. So if the user is on the messaging app and my service is running in the background, the call will return the messaging app. Not that my service will always be running but this information will help my service do additional things I want it to do.
On Aug 17, 8:55 am, "Balwinder Kaur (T-Mobile USA)" <balwinder.k...@t- mobile.com> wrote: > LocalActivityManager would be the class to look into Specifically, > getCurrentActivity () will return the current activity. > > http://developer.android.com/reference/android/app/LocalActivityManag...() > > 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 -~----------~----~----~----~------~----~------~--~---

