How to get TimeZone from android mobile?

asha v picture asha v · Oct 6, 2011 · Viewed 140.3k times · Source

I want to get the time zone from the Android mobile when clicking a button.

Answer

MasterCassim picture MasterCassim · Oct 6, 2011

Have you tried to use TimeZone.getDefault():

Most applications will use TimeZone.getDefault() which returns a TimeZone based on the time zone where the program is running.

Ref: http://developer.android.com/reference/java/util/TimeZone.html