shailesh shailesh - 7 days ago 6
Android Question

Notification like whatsapp or sms app android

I want to create a Notification view just like whatsapp or sms notification.How can i achieve that.

enter image description here

What I have search till now

Crouton : Can found here

this will show a crouton at running activity and below to the action bar.
if my activity not running or i am on the other activity how can this handle.

Toast:
this is not looking like a toast. It show only on bottom or center .

Dialog:
this can be done like this but this will blur the application. and disable the background. And i don't want this

Any solution will appreciated.

Thanks

Answer

what you are looking in the image above "heads up notificcation" (feature added after android 4.3)

link :heads up notification

set priority of notification as high so as to display it on screen head hope this helps

Comments