I was looking at the Package Manager api, but it looks like the
Process api might be more useful.
http://developer.android.com/reference/android/os/Process.html
Has anybody used this before or have an example?

On Aug 27, 6:24 pm, GodsMoon <godsm...@gmail.com> wrote:
> That might be enough info for my app.
> Which api are you looking at?
>
> On Aug 27, 6:06 pm, Chris Stratton <cs07...@gmail.com> wrote:
>
> > On Aug 27, 5:40 pm, GodsMoon <godsm...@gmail.com> wrote:
>
> > > I'm writing a back ground app and would like to be able to tell which
> > > app is currently running (actually has focus).
> > > I'm particularly interested in if the Home screen is being shown.
> > > Can anyone help with this?
>
> > I got stumped on that too.
>
> > There is a call that will get a list of what is running and tell if it
> > has user-interactive level of priority, but that's not unique enough -
> > a few things (in call screen for example) keep this even when their
> > window is not visible.  Another problem is that latin input method can
> > show up in the list interactive priority, but you don't know what
> > application it is accepting input on behalf of.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to