Uiautomator可以利用JAVA里的openConnection()方法来获得网络时间
URL url = new URL("http://open.baidu.com/special/time/");// 取得资源对象
URLConnection uc = url.openConnection();// 生成连接对象
uc.connect(); // 发出连接
long ld = uc.getDate(); // 取得网站日期时间(时间戳)
Date date2=new Date(ld);
SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String time=fo