Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get device and user independent time in android

Tags:

android

In m,y android application i would like to use time which do not come from device but a standard time that the user cannot change. Is there any way to do this.

Please share your valuable suggestions.

Thanks in advance:)

like image 586
Remmyabhavan Avatar asked Sep 01 '10 05:09

Remmyabhavan


1 Answers

You can use NTP for fetching the time from any of the public NTP servers. You can read the example SNTP client code for java here.

like image 89
bhups Avatar answered Oct 11 '22 08:10

bhups