First, use the Toast Display prompt message box
Toast is a handy hint message box that displays a simple hint on the program interface that is used to generate a simple message to the user. It has two features:
1. Toast prompt does not get focus
2, toast information will automatically disappear over a period of time
To generate a hint using a toast
1. Call the toast constructor or the Maketext method to create a Toast object.
2. Call the Toast method to set the message prompt alignment, margins, display content, and so on.
3. Call the Toast's show () method to display it.
Second, Notification
Notification is the information displayed on the phone's status bar-the phone status bar is located at the top of the phone's screen, which typically shows the current network status, battery status, and time of the phone. Notification represents a notification with a global effect, and the program generally sends notification through the Notificationmanager service.
Steps to use notification
1, call the Getsystemservice (Notification_service) method to obtain the system's Notificationmanager service.
2. Create a notification object from the constructor.
3. Set various properties for notification.
4, send notification through Notificationmanager.
Wirelessly's message tip