After processed some activity, i want to exit the application.I implemented
public void onBackPressed() {
System.exit (0);
}
But my application is back to previous activity..I need exit my application completely.How to do that?
I had searching a lot of article but it not working on that.
My android is 2.3
dldnh is right. You can monitor for finish, or you can finish first activity after you start second activity.
then in secound activity: