How does forceStopPackage work in Android 2.2 (Froyo)?

Thanks Google released 2.2 source code.

In this code-InstalledAppDetails.java

It shows how android 2.2 do the "force close" function.

    private void forceStopPackage(String pkgName) {
        ActivityManager am = (ActivityManager)getSystemService(
                Context.ACTIVITY_SERVICE);
        am.forceStopPackage(pkgName);
        checkForceStop();
    }


However "forceStopPackage" method is not in ActivityManager class.
http://developer.android.com/reference/android/app/ActivityManager.html

Is it a interneal API? Many Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to