I understand that it's possible. At least I see that various applications used to put in notification tray their icons (e.g. Skype).
What about my application? What should I do to put my icon or message in notification bar?
You specify the UI information and actions for a notification in a
NotificationCompat.Builder
object. To create the notification itself, you callNotificationCompat.Builder.build()
, which returns aNotification
object containing your specifications. To issue the notification, you pass theNotification
object to the system by callingNotificationManager.notify()
...