What you learn: You will learn how to read out the PID (ProcessID) of the current Activity using myPid(); and of all Processes using getPids(...,...);.
Difficulty: 0.5 of 5
Questions/Problems: Simply post below...
What it will look like:
[align=center]Nothing to see here...[/align]
Description: This is a 1-liner, not much to explain
There is a possibility to receive the PIDs of all Processes running on the Android-Device, called getPids(...):
Just to see it returns the correct results run a "ps" on the adb shell using the following CommandLine-Code:
- Code: Select all
adb shell ps