tacone
tacone

Reputation: 11451

How to silently add a notification?

I'd like to selectively hide and show a notification based on what a user does.

Since that would happen pretty often, I'd like to have it appear in the notification dropdown without having the text message appear in the status bar every time I show it.

Task manager does it when I toggle it in its preference screen.

Upvotes: 2

Views: 174

Answers (1)

Brigham
Brigham

Reputation: 14564

When you create the Notification object, pass null for the ticker text.

Notification n = new Notification(R.drawable.icon, null, System.currentTimeMillis());

Upvotes: 2

Related Questions