When the BACK button is pressed on the phone, I want to prevent a specific activity from returning to its previous one.
Specifically, I have login and sign up screen
Put finish() just after
finish()
Intent i = new Intent(Summary1.this,MainActivity.class); startActivity(i); finish();