After A long Time I am restart My Blogging and add one more Tutorial about UTC.
OK first we have to know about utc and how it works. for That you have to visit the following page
Now We Move to Android Side and see that how android calculate UTC.
first of all I assume that u have A basic Knowledge of Android Programming , Eclipse and all its related Stuff.
And Below you see the some images of final out put of your application.
and Related Code I pasted below
In Above Code Line number 69 is important
- Timezone : Most applications will use getDefault() which returns a TimeZone based on the time zone where the program is running.
- TimeZone.getAvailableIDs Returns the system's installed time zone IDs. Any of these IDs can be passed to getTimeZone(String) to lookup the corresponding time zone instance.
If you wish to download complete source code. you can download from below link