problem with finishing/exiting an activity in android app
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 ?
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.
精彩评论