Your problem may be in the generic constructor "new Intent()". I
recommend you do something like:

Intent i = new Intent (this, Cvance383Activity.class)
                .setAction(Intent.ACTION_MAIN)
                .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, i,
0);


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

P.S. Bumps are impolite.


On Jul 15, 10:07 am, cvance383 <[email protected]> wrote:
> bump?
>
> On Jul 14, 5:24 pm, cvance383 <[email protected]> wrote:
>
>
>
> > Just trying to create a simplenotification, but keep getting an
> > illegalarguementexception "contentIntent required". Which is weird
> > because I believe I am passing the content intent.  Here is my code...
>
> > {
> >                notification= newNotification(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 
> > NewNotification" );
> >         }
>
> > I dont even care if thenotificationdoes anything when u click on it.
> > I just want anotificationthe 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