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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -