How to put notifications in an Android app?

Asked

Viewed 871 times

2

I would like to know how to develop notifications for a app Android, so it can be updated online. That is: Every time there is an update of app, I would like to see a similar notification to that of the image.

Exemplo de Notificação

  • 1

    Show us the research you have already done. Although your question is clear it does not demonstrate any development effort.

  • @Antonioalexandrealonsodesi In my researches I found only ways to develop popup on the screen with the command "alertdialog". I want to make notifications on the taskbar

2 answers

3

Nothing better than Google’s own documentation.

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

https://developer.android.com/reference/android/app/Notification.html

You can do from notifications with the default layout(remembering that the default layout changes from version to version of Android, IE, this layout ai of this image will not be the same for version 6.0, for example) until notifications with custom layout.

While the action that will trigger the notification, this is already the logic of your app.

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.