Shrikant Mahapatra
Jul 10, 2017 · 1 min read

ActivityManager does that if we use the nested class ‘RunningAppProcessInfo’ with the method GetRunningAppProcesses’. But now these just return my application package information only, I think it is not supported after Android 5.1.1.

So, is there any other function that returns the PID if I supply the package name?