标签:添加 art text ring time bsp string 文本 cti
Date startDate = new Date(System.currentTimeMillis());
在收到设备返回数据之后添加如下语句:
Date endDate = new Date(System.currentTimeMillis());
long diff = endDate.getTime() - startDate.getTime();
然后在文本框中显示出来:
String sDiff = String.valueOf(AmoComActivity.Diff);
((TextView) findViewById(R.id.edit_text)).setText(sDiff);
标签:添加 art text ring time bsp string 文本 cti
原文地址:http://www.cnblogs.com/zl1991/p/7771603.html