开发者

Where is the place the status bar time gets updated?

开发者 https://www.devze.com 2023-02-20 17:27 出处:网络
Got an issue, i have to display the AM & PM in english irrespective of the selected locale in android phone. Tried to findout the place where time gets updated in the status bar. But not able to f

Got an issue, i have to display the AM & PM in english irrespective of the selected locale in android phone. Tried to findout the place where time gets updated in the status bar. But not able to find it.

Will any one please let me know which is the source code file in the android framework which is responsible for updating the time in status bar.

Thanks & Reg开发者_Go百科ards,

SSuman185


After a lot of R & D. StatusBarManager.Java, StatusNarManagerService.java are the files for the status bar and will be in the framewroks/base/core/java/android/app path.

For the notification area see the NotificationManager.java (When we pull down the status bar).

SimpleDateFormat.java


If you just want the AM/PM show, just have a look at Clock.java located at frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar.
Study it and you would know how to make AM/PM shows. They are already there but not turned on.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号