I\'m trying to get the UTC offset in seconds in android. Since the emulator keeps returning 0, I can\'t tell if I\'m doing this correctly or not.
Calendar c=
The default timezone of the emulator is GMT, meaning you will always get an offset of 0. Your code looks fine (I didn't try it). Try changing the timezone of your emulator to something else and check your code. Take a look in this open post: Link