I am a new beginner in android, so please tell me how to finish an activity in Android. I have already done one project. In this project, the previous activity was also working. So please tell me how to finish that activity when the next activity starts briefly.
Thanks in advance
After I start the activity, I call the finish() method:
Intent i=new Intent(mainclass.this,nextclass.class);
startActivity(i);
finish();
Then the previous activity(mainclass) is finished.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With