Reputation: 2217
I'm writing an application for my Android phone. The application has a background service. I want to display that service in the notification area like Skype application does. If I use NotificationManager and Notification (the way android samples do), the result is different.
My notification is the one called "Service". The Skype service has an icon just above the notification area. Skype has also "normal notifications". These "normal notifications" appear below my notification.
I want my service to be above the notification area like Skype application is. Does anyone know how to do that?
Thanks in advance.
Upvotes: 1
Views: 1454
Reputation: 11592
Take a look at
http://developer.android.com/reference/android/app/Notification.html#FLAG_ONGOING_EVENT
Also look at
Android: How to create an "Ongoing" notification?
and
http://developer.android.com/guide/topics/ui/notifiers/notifications.html
Upvotes: 3