To close application just call:
android.os.Process.killProcess(android.os.Process.myPid());
Otherwise due-to specific life-cycling of Android activities you can’t be sure that application is closed/killed.
More Related Contents:
- Sending an Intent to browser to open specific URL [duplicate]
- How to dynamically update a ListView on Android [closed]
- “Parse Error : There is a problem parsing the package” while installing Android application
- Is there a way to add a badge to an application icon in Android?
- How can I create a user-defined function in SQLite?
- How to downsample images correctly?
- Call method when home button pressed
- Is there a listener for when the WebView displays it’s content?
- Further understanding setRetainInstance(true)
- Android Studio: Gradle: error: cannot find symbol variable
- Application Error – The connection to the server was unsuccessful. (file:///android_asset/www/index.html)
- Android appcompat-v7:21.0.0 change material checkbox colors
- Room – LiveData observer does not trigger when database is updated
- Android CardView remove padding
- Android – Correct use of invalidateOptionsMenu()
- How is an Intent Service Declared in the Android Manifest?
- Set dynamic base url using Retrofit 2.0 and Dagger 2
- adb got two same serial numbers when connected to two smart phones
- Android/Java: how to delay return in a method
- setHintTextColor() in EditText
- Two app with shared UserID
- Is there a way to detect which cellular network is used on Android?
- Getview Called multiple times in android
- Program type already present: android.support.v4.app.BackStackRecord
- How do I show Overflow Menu Items to Action Bar in Android
- Android GCM and multiple tokens
- Mixing Audio Files
- How to set status bar background as gradient color or a drawable in Android?
- Shared Preferences – max length of a single value
- @Override annotation error (android prefs)