I\'d like to force stop my Android application when I click closeButton. This is my code.
protected void onCreate(Bundle savedInstanceState) { this.setCon
Note: This does not kill the entire app, but if what you want to do is to finish all the app activities, this is the best option.
finishAffinity();
ActivityCompat.finishAffinity(Activity activity)
Hope this helps