检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:赵鹏 骆德汉[1] 梅领亮 Zhao Pe ng;Luo Dehan;Mei Linglian g(Information Engineering Institute, Guangdong University of Technology, Guangzhou 510006, China;Guangdong Zhengye Technology Stock Limited Company, Dongguan 523270, China)
机构地区:[1]广东工业大学信息工程学院,广东广州510006 [2]广东正业科技股份有限公司,广东东莞523270
出 处:《微型机与应用》2017年第21期57-60,共4页Microcomputer & Its Applications
基 金:广东省科技计划项目(2014B010124001;2016B030303011);广东省教育厅研究生教育创新计划项目(2015JGXM-ZD14)
摘 要:JSON作为一种轻量级的数据交换格式,具有安全、快速、通用、数据通信量小等优点,这些优点使JSON成为理想的数据交换语言。Android移动终端对数据的远程访问量正飞速增长,对数据的远程获取方法也提出了更高的要求,而JSON的众多优点使之能很好地满足这一要求。文章在Volley框架中使用GET方式远程获取JSON数据,然后对JSON数据进行解析处理,最终通过Handler把处理后的数据更新到UI控件上,从而实现JSON数据在Android终端上的远程获取解析和显示。As a lightweight data-interchange format,JSON has a lot of advantages,such as safe,fast,global,and small data traffic. Just because of those excellent merits,JSON becomes an ideal data-interchange language. The remote access traffic of data of Android mobile terminal is increasing in a very fast speed,and it puts forward higher requirements to the method of remote access of data. The wonderful virtues of JSON make itself meets those requirements perfectly. In this paper,we use the method of GET in Volley communication framework to obtain JSON data remotely. Then,to resolve and handle JSON data,and update the handled JSON data to the widgets of UI finally though handler. By this way,we can obtain JSON data remotely,resolve it efficiently,and display it on Android mobile terminal easily.
关 键 词:ANDROID JSON Volley HANDLER
分 类 号:TP391.1[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.22.42.249