文件名称:aidl-Cross-process-calls
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Android] [Java] [源码]
- 上传时间:
- 2013-04-14
- 文件大小:
- 117kb
- 下载次数:
- 0次
- 提 供 者:
- hpu***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
这两天在学习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
........................\RemoteClientTest\.classpath
........................\................\.project
........................\................\AndroidManifest.xml
........................\................\bin\classes\com\amaker\ch07\app\IPerson$Stub$Proxy.class
........................\................\...\.......\...\......\....\...\IPerson$Stub.class
........................\................\...\.......\...\......\....\...\IPerson.aidl
........................\................\...\.......\...\......\....\...\IPerson.class
........................\................\...\.......\...\zsh\MainActivity$1.class
........................\................\...\.......\...\...\MainActivity$2.class
........................\................\...\.......\...\...\MainActivity.class
........................\................\...\.......\...\...\R$attr.class
........................\................\...\.......\...\...\R$drawable.class
........................\................\...\.......\...\...\R$id.class
........................\................\...\.......\...\...\R$layout.class
........................\................\...\.......\...\...\R$string.class
........................\................\...\.......\...\...\R.class
........................\................\...\classes.dex
........................\................\...\RemoteClientTest.apk
........................\................\...\RemoteTest.apk
........................\................\...\res\drawable-hdpi\ic_launcher.png
........................\................\...\...\.........ldpi\ic_launcher.png
........................\................\...\...\.........mdpi\ic_launcher.png
........................\................\...\resources.ap_
........................\................\gen\com\amaker\ch07\app\IPerson.java
........................\................\...\...\zsh\R.java
........................\................\proguard.cfg
........................\................\project.properties
........................\................\res\drawable-hdpi\ic_launcher.png
........................\................\...\.........ldpi\ic_launcher.png
........................\................\...\.........mdpi\ic_launcher.png
........................\................\...\layout\main.xml
........................\................\...\values\strings.xml
........................\................\src\com\amaker\ch07\app\IPerson.aidl
........................\................\...\...\zsh\MainActivity.java
........................\......ServerTest\.classpath
........................\................\.project
........................\................\AndroidManifest.xml
........................\................\bin\Chapter07_Service_Remote.apk
........................\................\...\classes\com\amaker\ch07\app\IPerson$Stub$Proxy.class
........................\................\...\.......\...\......\....\...\IPerson$Stub.class
........................\................\...\.......\...\......\....\...\IPerson.aidl
........................\................\...\.......\...\......\....\...\IPerson.class
........................\................\...\.......\...\......\....\...\IPersonImpl.class
........................\................\...\.......\...\......\....\...\MainActivity.class
........................\................\...\.......\...\......\....\...\MyRemoteService.class
........................\................\...\.......\...\......\....\...\R$attr.class
........................\................\...\.......\...\......\....\...\R$drawable.class
........................\................\...\.......\...\......\....\...\R$id.class
........................\................\...\.......\...\......\....\...\R$layout.class
........................\................\...\.......\...\......\....\...\R$string.class
........................\................\...\.......\...\......\....\...\R.class
........................\................\...\classes.dex
........................\................\...\RemoteServerTest.apk
........................\.......