Alert Box in Android
Alert Box in Android

The component of an alert dialog box is setPostiveButton and setNegativeButton value followed by onClickListener event. onClickListener invoke when the user clicks on the button and response is generated.

Notification example in Android
Notification example in Android

Android provides notification for user information alert. It can toast notification or push notification.