简体   繁体   English

Android:static 状态栏通知

[英]Android: static status bar notification

How to create a static status bar notification?如何创建 static 状态栏通知? Like in skype app or others... It must be visible while app is running, even if it runs in background.就像在 Skype 应用程序或其他应用程序中一样......它必须在应用程序运行时可见,即使它在后台运行。

Create a notification and include FLAG_ONGOING_EVENT in the set of flags.创建一个通知并在标志集中包含FLAG_ONGOING_EVENT Note that when your application is finished, you should cancel the notification.请注意,当您的应用程序完成后,您应该取消通知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM