I'm trying to check if the specific process is running by using getRunningAppProcesses
inside of BroadcastReceiver.onReceive(Context context, Intent intent)
. But when that specific application is completely closed method getRunningAppProcesses
tells me that it's running and have foreground importance (proc.importance == 100
). How is it can be? Is it i'm getting an old context?
Asked
Active
Viewed 179 times
0

mirt
- 1,453
- 1
- 17
- 35
-
What does "completely closed" mean? – CommonsWare Mar 20 '15 at 17:36
-
It means that i swipe away the app from running apps an i see the home screen. – mirt Mar 22 '15 at 15:09
-
Perhaps it has a foreground service. – CommonsWare Mar 22 '15 at 15:28
-
It's might be. But then when main app is actually running too there should be 2 processes with same - the service and the app itself. – mirt Mar 26 '15 at 16:12