Just trying to create a simple notification, but keep getting an
illegalarguementexception "contentIntent required". Which is weird
because I believe I am passing the content intent.  Here is my code...


{
                notification = new Notification(iconID, message,
System.currentTimeMillis());
                PendingIntent appIntent = PendingIntent.getActivity(mobileApp, 
0,
new Intent(), PendingIntent.FLAG_NO_CREATE);
                notification.setLatestEventInfo(mobileApp,"Now Playing: ",
detailedMessaged, appIntent);
                nManager.notify(MOBILE_APP_ID, notification );
                Log.d( this.getClass().toString(), "Launching New Notification" 
);
        }

I dont even care if the notification does anything when u click on it.
I just want a notification the user can see. I construct an empty
intent "new Intent()", but have also tried it with a non-empty intent.
I also tried passing null for contentIntent, and get the same
exception. Whats the deal-o? Thanks for any help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to