获取Android设备和用户独立的时间独立、时间、用户、设备

由网友(风中追风)分享简介:ŸAndroid应用我想使用时间不来的设备,而是一个标准的时间,用户不能更改。有没有办法做到这一点。y android application i would like to use time which do not come from device but a standard time that the us...

ŸAndroid应用我想使用时间不来的设备,而是一个标准的时间,用户不能更改。 有没有办法做到这一点。

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.

请分享您宝贵的建议。

在此先感谢:)

推荐答案

您可以使用NTP从任何公共NTP服务器获取时间。你可以阅读的例子SNTP客户端code对Java 这里。

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.

阅读全文

相关推荐

最新文章