Possible Duplicate:
Does anyone know of a good JSON time server?
Is there any public json or xml present on server which I can parse for current time? I shall use this time for checking the expiration Period of Trial version of my app, I am not using Calendar or Date classes. I am new in Android. Thanks.
I know its not exactly what you ask but you may also get the time from the network provider (the mobile phone network).
Have you tried
it returns the time in millis.
So you don’t need an internet connection or parsing JSON, XML …
Hope this helps somehow,
Tobias