I realize: A few days ago found using killBackgroundProcesses (pkgName) method does not terminate the application;
.This method would use forceStopPackage use java reflection to call this method, but I do not always prompt permission,: Permission Denial: forceStopPackage () from pid = 22473, uid = 10072 requires android.permission.FORCE_STOP_PACKAGES but I've added this permission Please also explain in detail the end of the process method
android 2.2java code:
Method forceStopPackage = am.getClass () getDeclaredMethod ("forceStopPackage", String.class);.
forceStopPackage.setAccessible (true);
forceStopPackage.invoke (am, pkgName);
Reply:
I do not know System.exit (0) can do
Reply:
restartPackage this method
Name is entangled. .
You search for the next
Reply:
restartPackage I used this method only in version 2.2 of the following can completely end the program. Sdk 2.2 or useless and recommend the use of am.killBackgroundProcesses this method (in fact, difficult to use, not the end of the program); therefore needs a better way to achieve
This corresponds to the person also requested permission android.permission.FORCE_STOP_PACKAGES explain in detail ... looking forward to ...
Reply:
where you are forced to terminate the process?
Reply:
These procedures are themselves not to let it run a program terminates ah. . . Well, I see that no one knows
Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong
__________________________________________________________________________________________________
android.permission.FORCE_STOP_PACKAGES Jiong Jiong Jiong Jiong Jiong permission embarrassing Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong Jiong
Reply:
http://blog.csdn.net/davidleen29/article/details/7091669
Reply:
I have encountered this problem lz, wooden people know.
Reply:
I also encountered the same requirements ...
No comments:
Post a Comment