Research
I've been looking through the NotificationManager
class in the android documentation for API level 10 and haven't found a way to implement this. I also looked around on google but only found how to set the time at which the notification is actually set and how to set the length of time a toast notification widget is displayed.
Currently Implemented
I have already set the FLAG_NO_CLEAR
and FLAG_ONGOING_EVENT
to keep the notification icon present as well as keep the notification visible after expanding the notification drop-down.
Attempting to Do
I am attempting to display the text of the notification in the notification bar for 10 seconds instead of the standard amount of time. So I would basically like to do exactly what the setDuration(int)
function does in the toast widget.
I was wondering if this was possible and if so if someone could point me in the right direction on how to accomplish it.
setTicker()
and from what I was reading and my experiences with android I didn't think it was possible to control the duration but I was wondering if someone had a workaround or perhaps I had missed something. – Cooper