3
score
3.1K
views
no
status
CC BY-SA 3.0
Get (real) foreground process using activityManager.getRunningAppProcesses()
What is the correct method to get current foreground process and prevent false positives? UsageStatsManager is the only official API to get the current running app ( see #50 ). Using getRunningTasks(int maxNum) ,...