In my app, I have activity A (Launcher/Main Activity) ,B,C. A launches B or C depending on if the user is authenticated.
Now how do I remove A such that when the back button is pressed it just exits the app, not to A. Setting the flag FLAG_ACTIVITY_CLEAR_TOP
doesn't seem to work.
@Override
public void onBackPressed{
super.onBackPressed();
finish(); // finish activity B or C
//also finish activity A
}