I seem to recall that crashing when others tried it, but you are welcome to give it a shot. If it does not work, create a PendingIntent that does nothing (e.g., sends a broadcast that nobody should receive). Whatever you do, you really should mark the Notification as FLAG_AUTO_CANCEL.
Personally, I'd still use a regular PendingIntent, one that leads back to one of your activities. On Thu, Mar 17, 2011 at 10:32 AM, dashman <[email protected]> wrote: > After doing some work in a service - i'd like to > create a notification with just a message - no Intent. > > Just like to let the user know of the status of the > operation. > > Notification notification = new Notification(icon, tickerText, when); > > notification.setLatestEventInfo(context, contentTitle, contentText, > NO_INTENT_HERE ); > > NotificationManager mNotificationManager = > (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE); > mNotificationManager.notify(1, notification); > > possible? > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- 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

