btn1.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub finish(); System.exit(0); } });
References
https://stackoverflow.com/questions/6014028/closing-application-with-exit-button
btn1.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub finish(); System.exit(0); } });
References
https://stackoverflow.com/questions/6014028/closing-application-with-exit-button