How can I get an android application pid without using adb shell? Is there any API to get pid. any help will be appreciated
As every application has its own process id, one can get it by
int pid = android.os.Process.myPid();