摘要: INVITE sip:victor@add.ultrapower.com.cn;transport=tcp SIP/2.0Via: SIP/2.0/TCP 192.168.5.162;branch=z9hG4bK381ACAFC.537D4376;branched=FALSE;Max-Forwards: 69Contact: Via: SIP/2.0/TCP 192.168.5.162:11499;ms-received-port=2992;ms-received-cid=b100 Record-Route: ;tag=9B8AE5F9C759FB02F679AFD6CB7139... 阅读全文
posted @ 2014-01-15 11:47 lynchyo 阅读(13889) 评论(0) 推荐(1) 编辑
摘要: 这个异常大概意思是在主线程访问网络时出的异常。 Android在4.0之前的版本 支持在主线程中访问网络,但是在4.0以后对这部分程序进行了优化,也就是说访问网络的代码不能写在主线程中了。为了把域名转化为ip地址,我在主线程中调用GetInetAddress函数。public static String GetInetAddress(String host){//域名host转化为ip地址IPAddress返回 String IPAddress = ""; InetAddress ReturnStr1 = null; try { ... 阅读全文
posted @ 2014-01-15 10:41 lynchyo 阅读(1284) 评论(0) 推荐(0) 编辑