作家
登录

Android中的IPC机制

作者: 来源: 2017-05-16 09:16:15 阅读 我要评论

  1. //Book.java 
  2.  
  3.    public class Book implements Parcelable{ 
  4.           int id; 
  5.           String type; 
  6.  
  7.           public Book(int id, String type) { 
  8.               this.id = id; 
  9.               this.type = type; 
  10.           } 
  11.  
  12.           @Override 
  13.           public String toString() { 
  14.               return "Book{" + 
  15.                       "id=" + id + 
  16.                       ", type='" + type + '\'' + 
  17.                       '}'
  18.           } 
  19.  
  20.       @Override 
  21.       public int describeContents() { 
  22.           return 0; 
  23.       } 
  24.  
  25.       @Override 
  26.       public void writeToParcel(Parcel dest, int flags) { 
  27.           dest.writeInt(this.id); 
  28.           dest.writeString(this.type); 
  29.       } 
  30.  
  31.       protected Book(Parcel in) { 
  32.           this.id = in.readInt(); 
  33.           this.type = in.readString(); 
  34.       } 
  35.  
  36.       public static final Creator<Book> CREATOR = new Creator<Book>() { 
  37.           @Override 
  38.           public Book createFromParcel(Parcel source) { 

      推荐阅读

      央行成立金融科技委员会,用人工智能技术加强监管

    中国人平易近银行宣布他们在近期成立了金融科技(FinTech)委员会。金融科技是技巧驱动的金融立异,为金融成长注入了新的活力,也给金融安然带来了新挑衅。中国人平易近银行将组织深刻研究金>>>详细阅读


    本文标题:Android中的IPC机制

    地址:http://www.17bianji.com/lsqh/35226.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)