Android获取网络时间

在开发的时候,由于本机时间有时不许确,而每每会有须要取精准的网络时间的状况,该方法能够用来获取网络时间web public static Date getNetTime(){ String webUrl = "http://www.ntsc.ac.cn";//中国科学院国家授时中心 try { URL url = new URL(webUrl
相关文章
相关标签/搜索