Reputation: 677
I am trying to exit an activity using the code
myClass.this.finish();
However, the code keeps on executing the lines after this.
Any idea why ?
Upvotes: 1
Views: 157
Reputation: 24722
This code just informs runtime that activity is finished so appropriate actions could be taken and activity is not preserved. But it does not mean immediate abort
. Just put return
where necessary.
Upvotes: 3