摘要:
android 4.0以后不能再主进程进行HTTP访问,必须要在OnCreate()中加入这么一段代码。StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() .detectDiskReads().detectDiskWrites().detectNetwork() .penaltyLog().build()); StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() .detectLeakedSqlLiteObjects().detectL... 阅读全文