文件名称:aidl-Cross-process-calls
-
所属分类:
- 标签属性:
- 上传时间:2013-04-14
-
文件大小:117.09kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
这两天在学习aidl跨进程调用,研究了一天终于写出了个helloword……开发aidl跨进程调用,主要分以下步骤:
1.创建.aidl文件-该文件(YourInterface.aidl)定义了客户端可用的方法和数据的接口。
2.在makefile文件中加入.aidl文件-(Eclipse中的ADT插件提供管理功能)Android包括名为AIDL的编译器,位于tools/文件夹。
3.实现接口-AIDL编译器从AIDL接口文件中利用Java语言创建接口,该接口有一个继承的命名为Stub的内部抽象类(并且实现了一些IPC调用的附加方法),要做的就是创建一个继承YourInterface.Stub的类并且实现在.aidl文件中声明的方法。
4. 向客户端公开接口-如果是编写服务,应该继承Service并且重载Service.onBind(Intent) 以返回实现了接口的对象实例 -This two-day learning aidl cross-process calls, research and one day finally wrote helloword to ...... the development of the aidl cross-process calls, mainly consists of the following steps: 1. Created. Aidl file- the file (YourInterface.aidl) defines a client The available methods and data interface. 2 in the makefile. Aidl file- (the Eclipse ADT plugin provides management functions) Android called AIDL compiler tools/folder. 3 interface-AIDL compiler to create an interface from the the AIDL interface file using the Java language, the interface, the naming of a successor for the Stub internal abstract class (and some additional IPC calls) to do is to create a inherit the YourInterface.Stub class in aidl file declared. Open interface to the client- if writing services, should inherit Service and reload Service.onBind (Intent) to return the interface object instance
1.创建.aidl文件-该文件(YourInterface.aidl)定义了客户端可用的方法和数据的接口。
2.在makefile文件中加入.aidl文件-(Eclipse中的ADT插件提供管理功能)Android包括名为AIDL的编译器,位于tools/文件夹。
3.实现接口-AIDL编译器从AIDL接口文件中利用Java语言创建接口,该接口有一个继承的命名为Stub的内部抽象类(并且实现了一些IPC调用的附加方法),要做的就是创建一个继承YourInterface.Stub的类并且实现在.aidl文件中声明的方法。
4. 向客户端公开接口-如果是编写服务,应该继承Service并且重载Service.onBind(Intent) 以返回实现了接口的对象实例 -This two-day learning aidl cross-process calls, research and one day finally wrote helloword to ...... the development of the aidl cross-process calls, mainly consists of the following steps: 1. Created. Aidl file- the file (YourInterface.aidl) defines a client The available methods and data interface. 2 in the makefile. Aidl file- (the Eclipse ADT plugin provides management functions) Android called AIDL compiler tools/folder. 3 interface-AIDL compiler to create an interface from the the AIDL interface file using the Java language, the interface, the naming of a successor for the Stub internal abstract class (and some additional IPC calls) to do is to create a inherit the YourInterface.Stub class in aidl file declared. Open interface to the client- if writing services, should inherit Service and reload Service.onBind (Intent) to return the interface object instance
(系统自动生成,下载前可以参看下载内容)
下载文件列表
aidl Cross-process calls/aidl跨进程调用.txt
aidl Cross-process calls/RemoteClientTest/.classpath
aidl Cross-process calls/RemoteClientTest/.project
aidl Cross-process calls/RemoteClientTest/AndroidManifest.xml
aidl Cross-process calls/RemoteClientTest/bin/classes/com/amaker/ch07/app/IPerson$Stub$Proxy.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/amaker/ch07/app/IPerson$Stub.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/amaker/ch07/app/IPerson.aidl
aidl Cross-process calls/RemoteClientTest/bin/classes/com/amaker/ch07/app/IPerson.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/MainActivity$1.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/MainActivity$2.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/MainActivity.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R$attr.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R$drawable.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R$id.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R$layout.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R$string.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R.class
aidl Cross-process calls/RemoteClientTest/bin/classes.dex
aidl Cross-process calls/RemoteClientTest/bin/RemoteClientTest.apk
aidl Cross-process calls/RemoteClientTest/bin/RemoteTest.apk
aidl Cross-process calls/RemoteClientTest/bin/res/drawable-hdpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/bin/res/drawable-ldpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/bin/res/drawable-mdpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/bin/resources.ap_
aidl Cross-process calls/RemoteClientTest/gen/com/amaker/ch07/app/IPerson.java
aidl Cross-process calls/RemoteClientTest/gen/com/zsh/R.java
aidl Cross-process calls/RemoteClientTest/proguard.cfg
aidl Cross-process calls/RemoteClientTest/project.properties
aidl Cross-process calls/RemoteClientTest/res/drawable-hdpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/res/drawable-ldpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/res/drawable-mdpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/res/layout/main.xml
aidl Cross-process calls/RemoteClientTest/res/values/strings.xml
aidl Cross-process calls/RemoteClientTest/src/com/amaker/ch07/app/IPerson.aidl
aidl Cross-process calls/RemoteClientTest/src/com/zsh/MainActivity.java
aidl Cross-process calls/RemoteServerTest/.classpath
aidl Cross-process calls/RemoteServerTest/.project
aidl Cross-process calls/RemoteServerTest/AndroidManifest.xml
aidl Cross-process calls/RemoteServerTest/bin/Chapter07_Service_Remote.apk
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/IPerson$Stub$Proxy.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/IPerson$Stub.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/IPerson.aidl
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/IPerson.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/IPersonImpl.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/MainActivity.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/MyRemoteService.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R$attr.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R$drawable.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R$id.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R$layout.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R$string.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R.class
aidl Cross-process calls/RemoteServerTest/bin/classes.dex
aidl Cross-process calls/RemoteServerTest/bin/RemoteServerTest.apk
aidl Cross-process calls/RemoteServerTest/bin/res/drawable/icon.png
aidl Cross-process calls/RemoteServerTest/bin/resources.ap_
aidl Cross-process calls/RemoteServerTest/gen/com/amaker/ch07/app/IPerson.java
aidl Cross-process calls/RemoteServerTest/gen/com/amaker/ch07/app/R.java
aidl Cross-process calls/RemoteServerTest/project.properties
aidl Cross-process calls/RemoteServerTest/res/drawable/icon.png
aidl Cross-process calls/RemoteServerTest/res/layout/main.xml
aidl Cross-process calls/RemoteServerTest/res/values/strings.xml
aidl Cross-process calls/RemoteServerTest/src/com/amaker/ch07/app/IPerson.aidl
aidl Cross-process calls/RemoteServerTest/src/com/amaker/ch07/app/IPersonImpl.java
aidl Cross-process calls/RemoteServerTest/src/com/amaker/ch07/app/MainActivity.java
aidl Cross-process calls/RemoteServerTest/src/com/amaker/ch07/app/MyRemoteService.java
aidl Cross-process calls/RemoteClientTest/bin/classes/com/amaker/ch07/app
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app
aidl Cross-process calls/RemoteClientTest/bin/classe
aidl Cross-process calls/RemoteClientTest/.classpath
aidl Cross-process calls/RemoteClientTest/.project
aidl Cross-process calls/RemoteClientTest/AndroidManifest.xml
aidl Cross-process calls/RemoteClientTest/bin/classes/com/amaker/ch07/app/IPerson$Stub$Proxy.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/amaker/ch07/app/IPerson$Stub.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/amaker/ch07/app/IPerson.aidl
aidl Cross-process calls/RemoteClientTest/bin/classes/com/amaker/ch07/app/IPerson.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/MainActivity$1.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/MainActivity$2.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/MainActivity.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R$attr.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R$drawable.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R$id.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R$layout.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R$string.class
aidl Cross-process calls/RemoteClientTest/bin/classes/com/zsh/R.class
aidl Cross-process calls/RemoteClientTest/bin/classes.dex
aidl Cross-process calls/RemoteClientTest/bin/RemoteClientTest.apk
aidl Cross-process calls/RemoteClientTest/bin/RemoteTest.apk
aidl Cross-process calls/RemoteClientTest/bin/res/drawable-hdpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/bin/res/drawable-ldpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/bin/res/drawable-mdpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/bin/resources.ap_
aidl Cross-process calls/RemoteClientTest/gen/com/amaker/ch07/app/IPerson.java
aidl Cross-process calls/RemoteClientTest/gen/com/zsh/R.java
aidl Cross-process calls/RemoteClientTest/proguard.cfg
aidl Cross-process calls/RemoteClientTest/project.properties
aidl Cross-process calls/RemoteClientTest/res/drawable-hdpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/res/drawable-ldpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/res/drawable-mdpi/ic_launcher.png
aidl Cross-process calls/RemoteClientTest/res/layout/main.xml
aidl Cross-process calls/RemoteClientTest/res/values/strings.xml
aidl Cross-process calls/RemoteClientTest/src/com/amaker/ch07/app/IPerson.aidl
aidl Cross-process calls/RemoteClientTest/src/com/zsh/MainActivity.java
aidl Cross-process calls/RemoteServerTest/.classpath
aidl Cross-process calls/RemoteServerTest/.project
aidl Cross-process calls/RemoteServerTest/AndroidManifest.xml
aidl Cross-process calls/RemoteServerTest/bin/Chapter07_Service_Remote.apk
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/IPerson$Stub$Proxy.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/IPerson$Stub.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/IPerson.aidl
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/IPerson.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/IPersonImpl.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/MainActivity.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/MyRemoteService.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R$attr.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R$drawable.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R$id.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R$layout.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R$string.class
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app/R.class
aidl Cross-process calls/RemoteServerTest/bin/classes.dex
aidl Cross-process calls/RemoteServerTest/bin/RemoteServerTest.apk
aidl Cross-process calls/RemoteServerTest/bin/res/drawable/icon.png
aidl Cross-process calls/RemoteServerTest/bin/resources.ap_
aidl Cross-process calls/RemoteServerTest/gen/com/amaker/ch07/app/IPerson.java
aidl Cross-process calls/RemoteServerTest/gen/com/amaker/ch07/app/R.java
aidl Cross-process calls/RemoteServerTest/project.properties
aidl Cross-process calls/RemoteServerTest/res/drawable/icon.png
aidl Cross-process calls/RemoteServerTest/res/layout/main.xml
aidl Cross-process calls/RemoteServerTest/res/values/strings.xml
aidl Cross-process calls/RemoteServerTest/src/com/amaker/ch07/app/IPerson.aidl
aidl Cross-process calls/RemoteServerTest/src/com/amaker/ch07/app/IPersonImpl.java
aidl Cross-process calls/RemoteServerTest/src/com/amaker/ch07/app/MainActivity.java
aidl Cross-process calls/RemoteServerTest/src/com/amaker/ch07/app/MyRemoteService.java
aidl Cross-process calls/RemoteClientTest/bin/classes/com/amaker/ch07/app
aidl Cross-process calls/RemoteServerTest/bin/classes/com/amaker/ch07/app
aidl Cross-process calls/RemoteClientTest/bin/classe
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.