我想在发布来自用户的通知之后在状态栏中显示通知。我该怎么做?想要在发布通知后在状态栏中显示通知
0
A
回答
0
1
在状态栏通知...
final NotificationManager mgr = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
Notification note = new Notification(R.drawable.msg,"New Message",System.currentTimeMillis());
PendingIntent i = PendingIntent.getActivity(this, 0, new Intent(this,notification.class), 0);
note.setLatestEventInfo(this,"NewMessage","You Receive "+count+" New Message", i);
mgr.notify(Notify,note);
相关问题
- 1. 状态栏通知
- 2. 状态栏通知
- 3. 如何显示在状态栏上一个通知图标多个通知
- 4. 通知图标显示在状态栏,但是却缺少通知本身
- 5. 离子推送通知不在通知栏上显示通知
- 6. 通知图标不显示在棒棒糖的状态栏中
- 7. 通知在状态栏中,当通知关闭时停止asynctask
- 8. 处理状态栏通知
- 9. Phonegap - Android - 状态栏通知
- 10. 多个状态栏通知
- 11. 状态栏旋转通知
- 12. Android状态栏通知
- 13. 通知不会显示在状态栏小图标
- 14. 如何在前台显示通知,而不是在状态栏上显示通知图标?
- 15. 如何在通知按钮点击后关闭状态栏/通知面板
- 16. Android:在状态栏但不在通知列表中的组通知
- 17. 状态栏android中的通知
- 18. 在通知栏上显示LevelListDrawable
- 19. 使用MonoDroid C显示状态栏通知#
- 20. 如何从'状态栏通知'获得通知的'优先'
- 21. Android的亮度变化通知(或状态栏汇总通知)
- 22. 火力地堡通知:状态栏通知被点击
- 23. 如何给通知添加标志(状态栏通知)?
- 24. 应用程序处于活动状态时,iOS推送通知无法显示在通知栏中?
- 25. 在MirrorLink中显示通知
- 26. 在android中显示通知
- 27. Android状态栏通知不加载
- 28. 设置定时状态栏通知
- 29. 从状态栏通知启动webview类
- 30. 每天更改android状态栏通知