Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用远程视图创建一个持续的通知。问题是点击后,通知被取消。
那是因为你设置了
notification.flag = Notification.auto_cancel
或者
new NotificationCompat.Builder(this) .setAutoCancel(true)
删除任何这些代码片段就可以了。