Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Android 4.2 introduced a new world clock. The world clock lets you check the time in different cities right from the Clock app or your lock screen. There is a way, or API to retrieve the selected time zones? | |||
Alas, there is no way. The cities are stored as shared preferences of the Clock app. See the Cities class that deals with reading and writing the prefs. The file is MODE_PRIVATE. The only way to use this is by using reflection - which I cannot recommend! What's a bit annoying: There is an update event broadcast (see the onPause() method of CitiesActivity) - but it doesn't contain any data. | ||||
default
.
stackoverflow.comm
No comments:
Post a Comment