回调机制及其在Android应用开发中的应用  被引量:10

Callback Mechanism and its Application in Android Application Development

在线阅读下载全文

作  者:彭涛[1] 孙连英[1] 

机构地区:[1]北京联合大学信息学院,北京100101

出  处:《北京联合大学学报》2013年第2期68-72,共5页Journal of Beijing Union University

基  金:北京市教育委员会科技发展计划项目(KM201211417002);北京市属高等学校高层次人才引进与培养计划项目(CIT&TCD 201304090);北京联合大学人才强校计划人才资助项目(BPHR2012F01)

摘  要:软件模块之间总是存在着一定的接口,从调用方式上,可以把它们分为三类:同步调用、回调和异步调用。同步调用是一种阻塞式调用,也是一种单向调用模式;回调则是一种双向调用模式,被调用方在接口被调用时也会调用对方的接口。在Android系统和Android应用程序开发中,回调都起着非常重要的作用。通过Android应用开发实例,讨论了回调机制在事件处理和消息传递中的使用。There is always some interfaces between software modules in a information system. And the interfaces call can be divided into three categories: synchronous call, callback and asynchronous call. Synchronous call is a blocking call and it is also an unidirectional call. Callback is bidirectional, and the receiving module will also call the calling module at specific time such as when designated event happens. The callback mechanism plays a vital role in Android platform and Android application development. The uses of the callback mechanism in event handling and message passing are illustrated with some development cases.

关 键 词:回调 ANDROID 事件处理 消息传递 

分 类 号:TN929.53[电子电信—通信与信息系统]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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