开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜