How to exit from an android app?
问题 I've just read that you can exit an android application by simply calling: finish(); However this is not the case! When I do this I get the following errors: PackageInstallationReciever Remove /data/local/tmp/com._____.apk Fail! AndroidRuntime Uncaught handler: thread main exiting due to uncaught exception AndroidRuntime java.lang.NullPointerException AndroidRuntime at android..... dalvikvm Unable to open stack trace file '/data/anr/traces.txt': Permission denied So what is the proper way to