How to get pid of android application without using adb shell? April 15, 2023 by Tarik As every application has its own process id, one can get it by int pid = android.os.Process.myPid();