0

Activity moved like below.

A(login view)

code:

startActivity(B);
finish();

-> B(main view, disable to go back to A)
-> C
-> D(logout button pressed)

when I press logout Button,
startActivity(A) with Flags.(like clear_top and single_top)

I don't want to go back to Activity 'D'. If I press back button, application should be closed. but, back to 'D'.

I tried FLAG_ACTIVITY_CLEAR_TOP ('A' finished. so, it doesn't work)

minSdkVersion: 10 (cannot use FLAG_ACTIVITY_CLEAR_TASK)

Mitaksh Gupta
  • 1,029
  • 6
  • 24
  • 50

0 Answers0