计算机应用与软件Issue(2):188-191,279,5.DOI:10.3969/j.issn.1000-386x.2016.02.045
Android 异步技术的对比实验及应用
CONTRAST EXPERIMENT OF ANDROID ASYNCHRONOUS TECHNOLOGIES AND THEIR APPLICATION
摘要
Abstract
The selection of asynchronous techniques is an important factor restricting the pros and cons of Android applications.At present,the important asynchronous techniques of Android application development include AsyncTask,ThreadPool and Thread +Handler. Aiming at the performance of these three asynchronous techniques when facing the scene of high outbreak in short period,we designed an Android application,and carried out the contrast experiments and analyses on stability,reaction speed and consumption of resource separately.Experimental result showed that the ThreadPool technique had the best comprehensive performance among three asynchronous techniques.This technique could better adapt to the situation of interacting a large amount of data with network in a short period.In a mobile OA project the ThreadPool technique was adopted,and by using it the function of asynchronous files download was realised.关键词
Android/异步/AsyncTask/ThreadPool/Thread/HandlerKey words
Android/Asynchronous/AsyncTask/ThreadPool/Thread/Handler分类
信息技术与安全科学引用本文复制引用
陈星,杨春花..Android 异步技术的对比实验及应用[J].计算机应用与软件,2016,(2):188-191,279,5.基金项目
山东省自然科学基金项目(ZR2011FQ017)。 ()