you can finish your activity as you can start your activity using
startActivityForResult(intent, 0);
you need to pass the same requestcode to this method
finishActivity(requestCode);
for delay time you can you Thread, Timer etc.
Or you can close your opened activity just implement Timer, thread which will hold you 2 min or as per your requirement then call
finish();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…