摘要: 1、导包ImageLoader找不到的哥们,点击这里2、创建默认的ImageLoader配置参数DisplayImageOptions options = new DisplayImageOptions.Builder() // 设置图片下载期间显示的图�? .bitm... 阅读全文
posted @ 2015-08-03 16:47 韩星 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 上一篇已经本地解析,接下来只是添加一个网络的异步下载volley1、首先导包volley,没找到的这里有一个http://download.csdn.net/detail/azhansy/89561612、在上一篇的基础上添加:RequestQueue requestQueue = Volley.n... 阅读全文
posted @ 2015-08-03 16:08 韩星 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1、把j资源放在res/raw下2、把需要解析的所有字符取出来,对象为jsonObect //将json文件读取到buffer数组中 InputStream is = this.getResources().openRawResource(R.raw.getcart); ... 阅读全文
posted @ 2015-08-03 15:23 韩星 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 前提是引用Volley的异步机制,引入它的jar包public void getJSONByVolley() { //mContext为上下文, RequestQueue requestQueue = Volley.newRequestQueue(mContext); ... 阅读全文
posted @ 2015-07-27 13:33 韩星 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 1、本地取出需要解析的Json字符串转化为UTF-8的格式将字符串json转换为json对象根据Json里面的key读取数据//将json文件(存放在本地的res/raw)读取到buffer数组中 InputStream is = this.getResources().ope... 阅读全文
posted @ 2015-07-27 13:20 韩星 阅读(1221) 评论(0) 推荐(0) 编辑