I want on button press to clear the activity stack , but leave not all activities. I want to leave the launcher activity in the stack (So if the back button is pressed to go to HomeScreen).
Does:
Intent launch = new Intent(context, LnewActivity.class);
launch.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
clear ALL activities, or does it leave the launcher activity in the stack? It is not clearly said in the docs.
Actually it does leave the launcher Activity in the stack!