Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

use of ntp service

Tags:

android

ntp

I'm developing an app that needs to control real time in any location on the Earth and do something when time comes. At the same time not to rely on system time because user can easily change it.
Does anybody have an experience of implementing "sntp/ntp" service on android device or is there any other solution to do it? Thanks

like image 647
Maxim Avatar asked Oct 06 '11 16:10

Maxim


1 Answers

Check out the SNTP client code at:

https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/net/SntpClient.java

like image 195
Brandon E Taylor Avatar answered Sep 30 '22 09:09

Brandon E Taylor