Android: Remove all the previous activities from the back stack
Intent i = new Intent(Activity1.this, Activity2.class);//Logini.putExtra("USER_ID",user_id_returned_in_json); // set the new task and clear flagsi.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(i); finish();
Comments
Post a Comment