How can I get an android application pid without using adb shell? Is there any API to get pid. any help will be appreciated