Notification from IntentService - NullPointerException while obtaining Context
I am unable to generate the notification (in the notification area) from an IntentService . I get a NullPointerException while obtaining NotificationManager . The problem is with Context. 06-01 16:46:05.910: ERROR/AndroidRuntime(14745): Caused by: java.lang.NullPointerException 06-01 16:46:05.910: ERROR/AndroidRuntime(14745): at android.content.ContextWrapper.getSystemService(ContextWrapper.java:363) 06-01 16:46:05.910: ERROR/AndroidRuntime(14745): at com.Android.Main1.FileUploaderService.<init>(FileUploaderService.java:71) The line of code is: mNotificationManager = (NotificationManager)