Code example for Parcel

Methods: writeBytewriteParcelable

0
		return 0; 
	} 
 
	public void writeToParcel( Parcel dest, int flags ){
 
		dest.writeParcelable( this.device, flags );
		dest.writeByte( this.capability );
		dest.writeByte( this.linkLossLevel );
		dest.writeByte( this.pathLossLevel );
		dest.writeByte( this.pathLossThreshold );
		dest.writeByte( this.remoteTxPower );
		dest.writeByte( this.currentRssi );
	} 
 
	public static final Parcelable.Creator<BluetoothPrxmDevice> CREATOR = new Parcelable.Creator<BluetoothPrxmDevice>(){
 
		public BluetoothPrxmDevice createFromParcel( Parcel in ){ 
 
			BluetoothPrxmDevice pdi = new BluetoothPrxmDevice( (BluetoothDevice)in.readParcelable( null ) ); 
			pdi.capability = in.readByte();