My Application Flow:
Login->Profile->UpdateProfile->ChangePass
All of my activitys extends FragmentActivity
When I press button in ChangePass Activity I call this code:
Intent intent=new Intent(getApplicationContext(),LoginActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
So It should start LoginActivity and when I press back from LoginActivity then Application should close...But When I press back button from Login Activity the flow is:
ChangePass->UpdateProfile->Profile->Login
Why My back stack is not cleared ?
Note:
I have applied all these solutions but not working: 1.link 2.link