摘要: 1.从网络下载图片并显示的例程1:在UI线程中启动一个线程,让这个线程去下载图片。2:图片完成下载后发送一个消息去通知UI线程3:UI线程获取到消息后,更新UI。executorService.submit(new Runnable(){ @Override publicvoid run() { try { URL newurl =new URL(params); HttpURLConnection conn = (HttpURLConnection)newurl.openConnec... 阅读全文
posted @ 2013-09-17 14:35 crowinhell 阅读(192) 评论(0) 推荐(0) 编辑