Hi all,
How i can exit from an application?
Button exit = (Button)findViewById(R.id.exit_btn);
exit.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
finish();
java.lang.System.exit(0);
}
});
this code just takes me to the last activity but i want to completely close the application