I want to show this kind of message in Android top after finishing some background work. How do I show this kind of notification ? Thanks..
That looks like the ticker text of a Notification
, assuming that this screenshot is of the top of the screen. You can add that to the Notification
via setTicker()
on your NotificationCompat.Builder
. Note, though, that ticker text is no longer displayed as of API Level 21 (Android 5.0). Also note that ticker text automatically disappears after a couple of seconds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With