android在主线程下载文件 加入以下代码即可
if (android.os.Build.VERSION.SDK_INT > 9) {
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
// DownLoadUtil.download(T.BUNDELURL,T.PATH,progressBar);
}
android在主线程下载文件
猜你喜欢
转载自www.cnblogs.com/syscn/p/9568572.html
今日推荐
周排行