0

I want to get the time zone code of an Android device, not sure how to do it. For example, if the device is located in Auckland, it should return the code NZ.

Thanks in advance.

Long Dao
  • 1,341
  • 4
  • 15
  • 33
  • Have you read: http://stackoverflow.com/questions/16086962/how-to-get-a-time-zone-from-a-location-using-latitude-and-longitude-coordinates – Morrison Chang Aug 01 '16 at 04:37
  • So the only way is to use latitude and longtitude? How about if current location is turned off? Is there some way I can get it from the settings of the device? I believe user will have to set it the first time when they activate their Android phone. – Long Dao Aug 01 '16 at 04:50
  • Have you read why 3 letter timezone description is depreciated: https://developer.android.com/reference/java/util/TimeZone.html – Morrison Chang Aug 01 '16 at 05:06
  • Possible solution: http://stackoverflow.com/questions/3659809/where-am-i-get-country – Morrison Chang Aug 01 '16 at 06:09

0 Answers0