Whenever people recommend using Calender
on Android, I’ll come creeping out of my tiny hiding place and tell them to please consider android.text.format.Time instead because it’s simply perfect for everyday use. Much more lightweight and to the point of practical needs.
Time deTime = new Time("Europe/Berlin");
deTime.setToNow();
deTime.format("...");
For the format, see http://linux.die.net/man/3/strftime. If I’d be the author, I’d not use fixed German local format, but rather be kind to all the foreigners interested in German TV and respect the device’s locale, like so:
deTime.format("%c");
0
solved Android – Getting Europe/Berlin current time regardless of device time and location? [duplicate]