Switch to ActivityManager.killBackgroundProcesses() API.

The new force stop API is not available outside of the system.
This commit is contained in:
Dianne Hackborn
2010-01-04 18:49:11 -08:00
parent 6161153ff4
commit bdb0690de9
2 changed files with 2 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ public class PackageSummary extends Activity {
mRestart.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
try {
ActivityManagerNative.getDefault().restartPackage(mPackageName);
ActivityManagerNative.getDefault().killBackgroundProcesses(mPackageName);
} catch (RemoteException e) {
}
}