A notification is a message you are able to show to your user outside of your application’s normal UI.
It first appears as an icon in the notification area when you tell the system to issue a notification. The user opens the notification drawer to see the details of the notification. Both the notification area while the notification cabinet are system-controlled areas that an individual can see at any time.
Android Toast course offers a way that is handy show users alerts but problem is that these alerts aren’t persistent which means alert flashes in the display screen for a few moments after which disappears.
To begin to see the details of the notification, you’re going to have to ch se the symbol which will show notification cabinet detail that is having the notification. While working together with emulator with virtual device, you’ll have to click and drag the status bar down to grow it that may give you detail as follows. This is simply 64 dp high and called view that is normal.
Above expanded type can have a Big View which will have detail that is additional the notification. You can include upto six additional lines in the notification. The following screen shot shows notification that is such.
Create and Forward Notifications
You have easy option to produce a notification. Proceed with the following actions in the application to make a notification в€’
Move 1 – Generate Notification Builder
As being a first faltering step is to create a notification builder making use of NotificationCompat.Builder.build().