摘要: 前提是引用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) 编辑