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?
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?
yes. finish should stop the activity. The onDestroy() happens when its called.
http://developer.android.com/reference/android/app/Activity.html#finish%28%29