How do I close a programmatically activity?
Answer
you can use this.
finish() if you want to close current activity. you can use finishAffinity(); to close all the activity.. finish() method is used to finish the activity and remove it from back stack.