返回活动(但不通过 finish())
正如标题所述,如何返回已启动但不调用 finish() 的活动。我主要担心这一点,因为我不知道当用户拉下通知栏并单击通知时如何告诉通知返回到创建它的原始活动。关于如何创建通知的教程仅解释了如何启动单击后会出现一个新活动。
是否有某种 Intent 调用可以做到这一点?提前致谢!
as the title states, how do I return to an activity that has been started but not by calling finish(). I'm primarily concerned about this because I don't know how to tell a Notification to return to the original activity that created it when a user pulls down their notification bar and clicks on the notification. The tutorial on how to create a notification only explains how to launch a new activity after it is clicked on.
Is there some kind of Intent call that can do this? Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 getIntent(),而不是创建新的 Intent。
Use getIntent(), instead of creating a new Intent.