开发者

android TabView Activity

开发者 https://www.devze.com 2023-02-13 05:08 出处:网络
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

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

精彩评论

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