How to Declare a Notification object

Notification was added in API Level 1
A class that represents how a persistent notification is to be presented to the user using the NotificationManager.

1. In the file, add the below line to the imports section.


2. Add the below line to the onCreate method. This will create a Notification named myNotification.
Notification myNotification;

3. Compile and run!