Sorry, we don't currently have a high-level API for doing this.  As a
hack, you can read /proc directly, but that is not something that is
part of the SDK and so you have no guarantees of it working on future
releases or other phones.

On Oct 23, 8:25 pm, alexdonnini <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Would anyone be able to tell me (or point me in the right direction)
> how I could retrieve the pids and related process information as
> reported, for example, in DDMS in an Android application?
>
> I have been able to put together a small application that retrieves
> information about all tasks running
> (ActivityManager activityManager =
> (ActivityManager)this.getSystemService(ACTIVITY_SERVICE);
>         List<ActivityManager.RunningTaskInfo> runningTasks =
> activityManager.getRunningTasks(30); )
>
> However, if possible, I would like to retrieve task and process
> information at a higher level of granularity (or, if you like, at
> lower level).
>
> Any help would be greatly appreciated.
>
> Thanks.
>
> Alex Donnini
--~--~---------~--~----~------------~-------~--~----~
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