关于Notification求助

android_Y 2012-07-03 09:01:11
Notification.FLAG_FOREGROUND_SERVICE;
Notification.FLAG_ONLY_ALERT_ONCE;
Notification.FLAG_SHOW_LIGHTS;
这个三个是什么意思?
...全文
303 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
android_Y 2012-07-04
  • 打赏
  • 举报
回复
HELP
android_Y 2012-07-04
  • 打赏
  • 举报
回复
再次3连
android_Y 2012-07-03
  • 打赏
  • 举报
回复
HELP
android_Y 2012-07-03
  • 打赏
  • 举报
回复
木有人吗
android_Y 2012-07-03
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 的回复:]

Notification.FLAG_FOREGROUND_SERVICE:运行手机QQ,返回系统主页,可以发现通知栏有个QQ的小图标,这个QQ通知一直在,除非你退出QQ或者回到QQ界面。这个通知就是这么做的。提示音振动和LED提示灯的效果就不用我说了吧?
[/Quote]
Notification.FLAG_FOREGROUND_SERVICE:运行手机QQ,返回系统主页,可以发现通知栏有个QQ的小图标,这个QQ通知一直在
是吗?
这个和Notification.FLAG_ONGOING_EVENT有什么区别?
还有就是提示音振动和LED是一次性的还是不停的?
LED是指手机的LED灯?不是通知的消息在闪?
会不会有的手机没有LED?
道军 汤 2012-07-03
  • 打赏
  • 举报
回复
Notification.FLAG_FOREGROUND_SERVICE:运行手机QQ,返回系统主页,可以发现通知栏有个QQ的小图标,这个QQ通知一直在,除非你退出QQ或者回到QQ界面。这个通知就是这么做的。提示音振动和LED提示灯的效果就不用我说了吧?
android_Y 2012-07-03
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 的回复:]

Notification.FLAG_FOREGROUND_SERVICE: this notification represents a currently running service.表示某个正在启动后台服务;
Notification.FLAG_ONLY_ALTER_ONCE: set if you want the sound and/or vibration play each t……
[/Quote]
它们有什么效果?
道军 汤 2012-07-03
  • 打赏
  • 举报
回复
Notification.FLAG_FOREGROUND_SERVICE: this notification represents a currently running service.表示某个正在启动后台服务;
Notification.FLAG_ONLY_ALTER_ONCE: set if you want the sound and/or vibration play each time the notification is sent.每次提示通知的时候会发出提示音或振动;
Notification.FLAG_SHOW_LIGHT: should be set if you want the LED on for this notification.每次提示通知的时候打开LED提示灯
android_Y 2012-07-03
  • 打赏
  • 举报
回复
求断

80,352

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧