There is also an un-official way to do this by reading the /proc filesystem.
I have not seen any official layout documentation of this (you might want to
consult the source code for Android for that), but it seems to be just what
/proc is like on any other Linux system.

So, e.g. getting the all the running processes look at the directories
/proc/nnnn where n is a number. For process 169, /proc/169/cmdline contains
the command line line etc.
For more information just google 'linux proc'.

Defensive programming is advised here, as the proc layout may change and may
be different for different Android devices.

HTH
Ludwig

2008/10/26 Guillaume Perrot <[EMAIL PROTECTED]>

>
> To watch processes:
> http://code.google.com/android/reference/android/os/Process.html
>
> To watch activity tasks:
> http://code.google.com/android/reference/android/app/ActivityManager.html
>
> So I guess you can.
>
> On Oct 25, 2:11 pm, dai <[EMAIL PROTECTED]> wrote:
> > hi, this might be a trivial question but do me a favor please..
> >
> > Can the android application we develop observe applications' process,
> > cpu performance, memory allocation?
> > Are the android allowed to have kind of this application?
> >
> > Thank you so much
> >
>

--~--~---------~--~----~------------~-------~--~----~
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