public static string getHDID() { string url = Global.url_recv + "/EduApi/hd.do?action=serialid.get&tm=" + Util.getUTC(); string resp = HTTPReq.HttpGet(url).Replace("\"", ""); int pos1 = resp.IndexOf("deviceid"); if (pos1 > 0) { try { string tmp1 = resp.Substring(pos1 + 9);//"deviceid:" int pos2 = tmp1.IndexOf(","); string tmp2 = tmp1.Substring(0, pos2); if (tmp2.Length > 0) { Global.setHDID(tmp2); } return(tmp2); }catch (Exception e) {} } return(""); }