Android Up Button to Kill Screen -
it easy "up" button in android go previous screen when there 1 screen can open activity, defining parent in manifest.
is there easy way kill activity when "up" button pressed?
try using intent.flag_activity_clear_top. e.g. :
intent intent = new intent(this, x.class); intent.setflags(intent.flag_activity_clear_top); startactivity(intent); finish();
this way of other activities on top of closed , intent delivered (now on top) old activity new intent.
Comments
Post a Comment