Why my Android notification's setTicker doesn't work? -


my code below:

notificationmanager manager = (notificationmanager) getsystemservice(notification_service);                 notification notification = new notificationcompat.builder(mainactivity.this)                         .setcontenttitle("nothing")                         .setcontenttext("nothing").setwhen(system.currenttimemillis())                         .setsmallicon(r.mipmap.ic_launcher)                         .setticker("help help:)")                         .setcontentinfo("nothing")                         .build();                 manager.notify(1, notification); 

when run this, "help help:)" didn't appear.

tickertext appear on phone before android 5.0 (l)

extracted documentation :

text summarizes notification accessibility services. of l release, text no longer shown on screen, still useful accessibility services (where serves audible announcement of notification's appearance).

https://developer.android.com/reference/android/app/notification.html#tickertext


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -