Running/Start time of android application/process?

by vishnu kumarraju » Sat, 12 Feb 2011 05:51:09 GMT

Sponsored Links
 I'm new to android,  my requirement is to display active process
running with process start time.
I'm able to get the list of running process name/ID's with the below
code, but couldn't able to find how long process is running.

Here is my code sample.

                List l = activityManager.getRunningAppProcesses();
                        Iterator i = l.iterator();
                PackageManager pm = this.getPackageManager();

while(i.hasNext()) {
                  ActivityManager.RunningAppProcessInfo info =
                  try {
                    CharSequence c =
                    Log.w("LABEL :::", c.toString());

                  }catch(Exception e) {
                    //Name Not FOund Exception

Can you suggest me is there any class I need to look into it?  It
would be great help if some one can help me with sample code. Thanks
in Advance.

Thanks & Regards


Other Threads

1. How to package resource files of core classes of dalvik?

When we porting dalvik, we encountered a problem.
We compiled and package those core classes into a classes.dex file.
But how to deal with those resource files such as
Can they also be pacakged into the classes.dex fiile? Or should use
another method to package them.
Remeber that the are core classes not application ones. So they are
not apk ones. The classes.dex will be set in the bootclasspath of
virtual machine.

2. Memory Card Reader Application

So I am wondering if anyone is working on an application that would
allow me to take my card reader and hook it up to my phone to transfer
the info onto the memory card in my phone. I am a photographer and
would like to be able to back up my photos onto another memory card
when i travel. I would like to do this so I wouldn't have to carry my
computer around. I can just buy multiple large memory cards and
transfer the info as I am out and about. If there is already such a
program could someone point me in the right direction?



4. Fails to access SurfaceFlinger even when specify ACCESS_SURFACE_FLINGER in Manifest.xml

5. Is there any truth in the Cupcake rollout rumors ...

6. Pause function of MediaRecorder.

7. after running , and press "m" , it shows "command not found"