开发者

android TabView Activity

i h开发者_运维百科ave three tab activity in my application(Home,Search,Back), Now on first tab I have some more activities. Now I want to go previous activity from the current activity so how can I do this?


You can just simple call your activity finish and it will take you the previous activity. Like if your activity name is SpalshActivity then do something like SpalshActivity.this.finish(); it will take you the previous activity but make sure you did not finish the previous activity when you come here from that activity.

Put this provided code line in your back button onClickListenere.

Hope it can help.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜