问题描述
我开发了一个定时器应用程序,但一些人注意到,该通知不会停止对他们的三星Galaxy或角宿一。
I developed a timer application but some people noticed that the notification never stops on their Samsung Galaxy or Spica.
我的这些标志贴在我的通知:
I have these flags attached to my notification :
notification.flags = Notification.FLAG_AUTO_CANCEL | Notification.FLAG_INSISTENT;
我真的不知道这是问题,但我想不出任何其他东西,使这个(我没有任何的三星手机进行测试)...
I'm not really sure this is the issue but I can't think of any other thing to cause this (and I don't have any samsung phone to test it)...
你有任何想法,为什么会错误特别是在三星手机?
我如何才能让通知声音循环不使用此 Notification.FLAG_INSISTENT;
Do you have any idea why would it bug especially on Samsung phones ?How could I make the notification sound to loop without using this Notification.FLAG_INSISTENT;
?
非常感谢!
推荐答案
我没有在我的秘密巢穴山实验室的一个的三星手机,所以我不知道这是否是一个错误或没有。
I don't have a Samsung phone in the lab in my Secret Mountain Lair, so I don't know if this is a bug or not.
您可以随时取消通知
通过自己无论你用 contentIntent
和/或<$启动C $ C> deleteIntent 的PendingIntent
值。
You can always cancel the Notification
yourself via whatever you're launching with the contentIntent
and/or deleteIntent
PendingIntent
values.
这篇关于三星手机和Notification.FLAG_INSISTENT错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!