Tuesday, June 4, 2013

[android help] How to retrieve selected time zones in android 4.2 world clock?

How to retrieve selected time zones in android 4.2 world clock? - Stack Overflow







Tell me more ×

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?


enter image description here


























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

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...