Friday, September 29, 2017

remove the previous activity while going to another activity - android studio



public void AgainSearch(View view){
    Intent i = new Intent(ShowResult.this,ResultJUST.class);
    i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    this.finish();
    startActivity(i);

}