一种基于JSON的Android终端远程获取解析数据的方法  被引量:19

A method of obtaining and resolving data remotely on Android terminal based on JSON

在线阅读下载全文

作  者:赵鹏 骆德汉[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[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象