GetRunningAppProcesses () returns processes that were killed

I am using the following snippet to check if the applications that I finish()ed are really working:

ActivityManager am = (ActivityManager)this.getSystemService(ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> procList = am.getRunningAppProcesses();
for (ActivityManager.RunningAppProcessInfo proc : procList)
    Log.d(TAG, proc.processName);
}

To my horror, some of the applications that I finish()ed (in their Activity.onCreate (), even before they had the ability to run anything) are still listed there.

Why?

LogCat shows that these applications onDestroy() were definitely .

What does it take to really remove an application from this list?

Is there killProcess()my only resource?

+5
source share
1 answer

, .

, O'Reilly, , , Destroyed "" onDestroy(), :

enter image description here

IMHO, O'Reilly , "" :

enter image description here

, , onDestroy() App-. , .

, : ( ?), - killProcess().

+5

All Articles