开发者

Android: static status bar notification

开发者 https://www.devze.com 2023-03-21 06:06 出处:网络
How to create a static status bar notification? Like in skype app or others... It must be visible while app is running, even if it runs in bac开发者_开发技巧kground.Create a notification and include F

How to create a static status bar notification? Like in skype app or others... It must be visible while app is running, even if it runs in bac开发者_开发技巧kground.


Create a notification and include FLAG_ONGOING_EVENT in the set of flags. Note that when your application is finished, you should cancel the notification.


http://developer.android.com/guide/topics/ui/notifiers/notifications.html

0

精彩评论

暂无评论...
验证码 换一张
取 消