I have a service running that updates a notification in the notification bar when it recieves a message saying it has to be changed.
However I get the following error so
I think this is because the Android OS Version
The version 2.3 or lower,must set contentIntent,if not,you will get this Exception.
In my project,I write like this:
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB) {
Intent intent = new Intent();
PendingIntent contentIntent = PendingIntent.getActivity(context, 0, intent, 0);
mNotification.contentIntent = contentIntent;
}
Perhaps this could help you!