调用另一个活动后如何恢复状态?
我的android应用程序很简单:一个活动包含一个webview,向用户显示我的网站,其中我有一个链接,当用户单击它时,将调用默认的短信程序。
这一切都运行良好,但是当我从短信返回时,它会重新启动程序(调用 onCreate() 方法)而不是返回到原始状态,我怎样才能回到转向短信程序之前的状态?
谢谢 :)
My android app is simple : a single activity contains a webview which shows user my website,in it I have a link which when user clicks on it ,the default sms program will be called.
That all works well,but when I return from the sms ,It restarts the program(call the onCreate() method ) instead of returning to the origin state , how can I get back to the state before I turn to the sms program ?
Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题非常相似。
This question is very similar.