backpressed prevent going to old activity code example
Example: android java how to stop users fromgoing back too much
// siyanda zama
@Override
public void onBackPressed() {
moveTaskToBack(true);
}
// siyanda zama
@Override
public void onBackPressed() {
moveTaskToBack(true);
}