Reup: Notification (NPE Issue)
I reworked the code to my notification class. Its spitting an Null pointer Exception at me every time I go to run it. So once more here is the code: import android.app.Activity; im
Solution 1:
You haven't initialized nm
:
nm.notify(CUSTOM_VIEW_ID, notification);
You should add:
nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
before trying to use nm
. Hope that helps!
From LogCat
For future reference these two lines:
Caused by: java.lang.NullPointerException
at com.example.this.kickStart.onCreate(kickStart.java:29)
Tell us that the NPE is on line 29 in kickStart.java, specifically kickStart.onCreate(). Using this information you should be able to find you NPEs faster than any of us, since we don't have line numbers. :)
Post a Comment for "Reup: Notification (NPE Issue)"