I tried
public void onClick(View v) {
// TODO Auto-generated method stub
finish();
System.exit(0);
}
in an button onClick listener but it only kills the current activity..I want to be able to exit from the application.