The AndroidManifest.xml File - ìëë¡ì´ë 기ì 커뮤ëí° : Korea ...
The AndroidManifest.xml File - ìëë¡ì´ë 기ì 커뮤ëí° : Korea ...
The AndroidManifest.xml File - ìëë¡ì´ë 기ì 커뮤ëí° : Korea ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
AIDL (1.5 Change Feature)<br />
Implementing IPC Using AIDL : Pass by value Parameters using Parcelables<br />
If you have a class that you would like to send from one process to another through an AIDL<br />
interface, you can do that. You must ensure that the code for your class is available to the other<br />
side of the IPC. Generally, that means that you're talking to a service that you started.<br />
<strong>The</strong>re are five parts to making a class support the Parcelable protocol:<br />
1. Make your class implement the Parcelable interface.<br />
2. Implement the method public void writeToParcel(Parcel out) that takes the current state of<br />
the object and writes it to a parcel.<br />
3. Implement the method public void readFromParcel(Parcel in) that reads the value in a<br />
parcel into your object.<br />
4. Add a static field called CREATOR to your class which is an object implementing the<br />
Parcelable.Creator interface.<br />
5. Last but not least, create an aidl file that declares your parcelable class (as shown below). If<br />
you are using a custom build process, do not add the aidl file to your build. Similar to a<br />
header file in C, the aidl file isn't compiled.<br />
<strong>Korea</strong> Android Community- www.kandroid.org<br />
13