【发布时间】:2014-07-28 18:31:16
【问题描述】:
如果Activity 已经启动,我希望将PendingIntent 设置为Notification 不启动新的Activity(也不将其添加到后堆栈)
我应该遗漏一些东西,因为我尝试了 Prevent notification PendingIntent starts Activity already started?、Android: new Intent() starts new instance with android:launchMode="singleTop" 和 Android notification bar open last active activity?,但它们都不起作用。
如何做到这一点?
【问题讨论】: