How can I get an android application pid without using adb shell? Is there any API to get pid. any help will be appreciated
pid = process ID. uid = user ID of the application that owns that process. gid = group IDs of the application that owns that process.
As every application has its own process id, one can get it by
int pid = android.os.Process.myPid();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With