Android Parcel对象详解
关于Parcel的使用 在分析Parcel之前,首先按照分析流程,介绍下关于Parcel的相关常规使用。 首先是关于Parcel的获取: Parcel parcle = Parcel.Obtain(); 额,这感觉似曾相识啊,我们这里大胆猜测Parcel的初始化也是由其对象池进行初始化的。在得到了Parcel对象之后,下一步的工作。嗯,我想起来,应该介绍下Parcel的作用吧: 其实看到这篇文章的各位,应该也不需要这种科普吧,哈哈。我从源码注释中截取如下: *Container for a message (data and object references) that can * be sent through an IBinder. A Parcel can contain both flattened data * that will be unflattened on the other side of the IPC (using the various * methods here for writing specific types, or the general 从...