pastela
pastela

Reputation: 29

How to set number instead of icon to status bar on android

I want to make a timer/reminder that will show number of minutes until ring starts at status bar. It needs to be updated every minute automatically, and I know how to set icon but I don't know how to set number to be there instead of icon, so I don't want to have 30 icons of numbers... instead is there any option to somehow convert numbers to icons and show it on status bar every minute.

Upvotes: 1

Views: 517

Answers (1)

vegafish
vegafish

Reputation: 455

If your status bar means notification bar, according to this document, there is no way to put a text or number into the icon place. You may show the remaining time in the title or text in the notification as a normal App doing.

Edit: This thread is what you want. There is a method which converts numbers to icon format. You may pass the converted numbers to the icon parameter.

Upvotes: 1

Related Questions