1.Parcel简介在IPC过程中,发送方可以使用Parcel提供的写方法,将待发送的数据以特定格式写入Parcel对象。接收方可以使用Parcel提供的读取方法从Parcel对象中读取特定格式的数据。Parcel实例的默认容量为200KB。如果您想要更多或更少,请使用setCapacity(int)更改它。注意:只有以下数据类型的数据才能写入或从包裹中读取:byte,byteArray,short,shortArray,int,intArray,long,longArray,float,floatArray,double,doubleArray,boolean,booleanArray,ch