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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -