I want my activity to be clear form the back stack when user press back button. I am using this intent to open my activity:
Intent i = new Intent(context, OutGoingActivity.class);
i.putExtra("Number", incomingNumber);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TASK);
context.startActivity(i);
I want my OutGoingActivity Activity will be removed from the stack when I press the back button.
Every time when ever I launch my activity, a new activity should be opened instead of from the stack.