Use with getSystemService(String) to retrieve a NotificationManager for informing the user of background events.
1. In the MainActivity.java file, add the below line to the imports section.
import android.content.Context;
2. In the onCreate method, add the line below. This will save NotificationService to a string named svcName.
String svcName = Context.NOTIFICATION_SERVICE;
3. Compile and run!
Next Recommended Article: How to Declare a NotificationManager
Resources:
http://developer.android.com/reference/android/content/Context.html#NOTIFICATION_SERVICE