Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is Android notification time format updated?

Tags:

android

I'm using a custom RemoteView for AndroidNotification, and I would like to mimic the system behavior.

How does Android update its notification time format - do they ever change once they are set? How am I able to mimic this behavior?

like image 525
SIr Codealot Avatar asked Oct 05 '22 20:10

SIr Codealot


1 Answers

I don't know much about the notification time format, but if you want to mimic their behaviour should have a look at the DateUtils class, especially the formatSameDayTime which I think does what you described.

like image 155
ebarrenechea Avatar answered Oct 11 '22 01:10

ebarrenechea