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 MainActivity.java file, add the below line to the imports section.

import android.app.Notification;

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

3. Compile and run!

Resources:
http://developer.android.com/reference/android/app/Notification.html