Androider
Androider

Reputation: 21335

Android Keeping Notification Alive

I want to issue a notification that stays in the status bar until I specifically issue a cancel from notification manager. I know that there are some time fields for this, and I could of course provide an huge number for this, but i was wondering if there is a preferred way to specify this. Some way to indicate to the system that the notification is to be maintained until canceled, or is the millisecond measure the only way to go?

Upvotes: 0

Views: 854

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007554

Use FLAG_NO_CLEAR with your Notification.

Upvotes: 2

Related Questions