Code example for Parcel

Methods: writeInt, writeNoException

0
} 
else { 
_arg1 = null; 
} 
java.util.Map _result = this.getMap(_arg0, _arg1); 
reply.writeNoException(); 
reply.writeMap(_result); 
return true; 
} 
case TRANSACTION_getProduct: 
{ 
data.enforceInterface(DESCRIPTOR); 
net.blogjava.mobile.complex.type.aidl.Product _result = this.getProduct(); 
reply.writeNoException(); 
if ((_result!=null)) { 
reply.writeInt(1); 
_result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); 
} 
else { 
reply.writeInt(0); 
} 
return true; 
} 
} 
return super.onTransact(code, data, reply, flags);