开发者

Android: go back to previous activity? [duplicate]

This question already has answers here: Android: Go back to previous activity (24 answers) Closed 9 years ago.

Is there a way I can force the us开发者_Go百科er to go back to the previous Activity? I'd like to kill my current Activity make the user "go back" possible?


Call finish in your Activity : http://d.android.com/reference/android/app/Activity.html#finish()

And to make sure you started your activity correctly to have the state in the Activity Stack, check the documentation there : http://d.android.com/guide/topics/fundamentals/tasks-and-back-stack.html


Call finish()

From the link: Call this when your activity is done and should be closed. The ActivityResult is propagated back to whoever launched you via onActivityResult().


Call finish() to end the current activity and go back.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜