Who will update the time in android notification bar?

418 Views Asked by At

1)In android source code which file will set time in notification bar ? If anybody worked/know that file please let me know, i have to compare the time showing in notification bar and the current time.

2)And how the time will be updating each sec or minute.. i mean, how the time gets updated evey minute in notification bar. Is there any intent will say the time updated now or is there any code which will update by itself once initially we set the time?

Thanks for your time.

2

There are 2 best solutions below

1
On BEST ANSWER

1) Clock.java

2) By using TIME_TICK BroadcastReceiver. Which normal apps cannot register.

1
On

try this System.currentTimeMillis(); this is system timer which updates the time