views:

86

answers:

1
Intent nnn = new Intent(Hello.this, NewActivity.class);
startActivity(nnn);
finish();

This would start a new activity, and then close the current Activity forever, right?

+2  A: 

yes. finish should stop the activity. The onDestroy() happens when its called.

http://developer.android.com/reference/android/app/Activity.html#finish%28%29

zapping