In close() at SocketHttpClientConnection in Android

In close() at SocketHttpClientConnection Error In Android.

when i tried to acess network data on MainThread above Android 3.0 >= . I am unable to access . I am getting error In close() at SocketHttpClientConnection. Then i enabled strict mode issue solved.

Add this code in onCreate method.

StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);

 

上一篇:前端程序员必知的30个Chrome扩展-[转载]


下一篇:移动端网页使用flexible.js加入百度联盟广告样式不一致问题解决