You use Context.getSystemService() to retrieve it:

http://code.google.com/android/reference/android/content/Context.html#getSystemService(java.lang.String)

Note the information here is about -tasks-, which do not necessarily
map directly to processes or installed .apks, but are generally what
the user perceives as applications.

On Apr 25, 12:15 am, AndreySerj <[EMAIL PROTECTED]> wrote:
> > Um, please don't use private APIs like IActivityManager. :)  The
> > public API for this is on android.app.ActivityManager.
>
> Hello hackbod,
> I would like to find out how to get an instance of
> android.app.ActivityManager from my code ?
>
> PS: Could I clarify from my application how many another applications
> were running recently ?
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to