String jsonLists;
try {
jsonLists = new JSONObject(response).get("chglist").toString();
Type listType = new TypeToken<List<ChatMsgBean>>() {
}.getType();
final List<ChatMsgBean> datas = new Gson().fromJson(jsonLists,
listType);
</pre><pre name="code" class="html">为什么编辑器里不提示 new TypeToken的方法?
格式化时间,后边格式随便定义
SimpleDateFormat df = new SimpleDateFormat("HH:mm");
String dateTime = df.format(t.getTime()*1000L);