Present in both answers;Present only in the new answer;Present only in the old answer;
this code will help you Intent intent = new Intent(this, FirstActivity.Class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); finish();
Intent i = new Intent(this,Here is your first activity.Class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); finish();
Present in both answers;Present only in the new answer;Present only in the old answer;