I agree with TreKing. I just used this code in the last few days:

notification.flags |= Notification.FLAG_NO_CLEAR;

It appears to work fine for me. Does it solve your problem?

On Jul 17, 12:49 pm, Bret Foreman <bret.fore...@gmail.com> wrote:
> I'm setting my notification like this:
>
>         notification.defaults |= Notification.FLAG_NO_CLEAR;
>
> I expect this to mean that pressing the "clear" button in the expanded
> notification screen will not clear this notification. But the button
> still clears the notification.
>
> I think this may be a permissions problem in my manifest. I currently
> have a uses permission "android.permission.VIBRATE" set. Do I need any
> other permissions to make a notification sticky?

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to