I found this code to get overall cpu usage. is this possible to convert this to tell cpu usage by process? Is there any API by which we can get CPU or Memory usage of android?>
While Running your application, Run the DDMS tool which is present in Android-sdk\tools folder. Where you will get the complete details about all the running process. If you have debug enabled Android Device, then you can debug even from the device by connecting it to the system.