摘要
Android中线程主要是用来处理一些耗时操作,防止UI线程阻塞,并进行异步处理以提高程序的效率的线程。在Android应用开发中,要时时考虑到用户的体验效果,因此对应用程序的执行效率要有很高的要求,这就使开发人员在Android开发中无可避免地使用线程。本文主要讨论Android应用开发中线程使用的意义、使用线程的方法、主线程和子线间的通信,以及介绍了Android SDK中提供的一些有关线程的工具类。
The thread of Android is mainly used to cope with some consuming manipulations in order to prevent UI thread from obstruction and further to implement asynchronous processing to advance the thread of the program efifciency. In the application and development of Android,we should usually think over users’ experience effects,thus exerting high expectations on the executive efficiency of the application program,which means,the developers inevitably need to use thread during the Android development. This paper mainly discuss on the topics of the signiifcance of using thread in Android application and development,the ways of using thread,the communications between the main thread and sub thread and we also have introduced some utility classes relative to thread provided in Android SDK.
出处
《软件》
2013年第8期24-26,41,共4页
Software