首页 | 本学科首页   官方微博 | 高级检索  
     检索      

Android中UI线程与后台线程交互的探讨
引用本文:周兵.Android中UI线程与后台线程交互的探讨[J].郧阳师范高等专科学校学报,2013,33(3):14-16.
作者姓名:周兵
作者单位:郧阳师范高等专科学校计算机科学系,湖北 十堰,442000
摘    要:在使用Android智能机的时候,往往有很多比较耗时的操作,如果这些耗时的操作放在主UI线程中,当耗时时间超过5秒后,系统就会报错,影响用户的使用,为了解决这个问题,我们必须使用异步更新UI界面.在Android系统中实现UI线程与后台线程的数据交互.

关 键 词:Handler  AsyncTask  异步更新  UI控件  线程

Interaction between UI Thread of Android and Background Thread
ZHOU-Bing.Interaction between UI Thread of Android and Background Thread[J].Journal of Yunyang Teachers College,2013,33(3):14-16.
Authors:ZHOU-Bing
Institution:ZHOU-- Bing (Department of Computer Seience,Yunyang Teachers' College, Shiyan 442000, China)
Abstract:When using Android intelligence machine, there are many time--consuming operations. When the opera- tions take place in UI control and the time is over 5 second, the system will show error messages, which will influence us- ers' application. To solve the problem, we must asynchronously update UI version.
Keywords:Handler  Async Task  Asynchronous update  UI controls thread
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号