文件名称: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
(系统自动生成,下载前可以参看下载内容)

下载文件列表





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

........................\.......

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org