Code example for Parcel

Methods: writeIntwriteNoException

0
} 
case TRANSACTION_getLocation:
{ 
data.enforceInterface(DESCRIPTOR);
android.location.Location _result = this.getLocation();
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);
} 
private static class Proxy implements edu.ucla.cens.truckstop.services.ILightLoc 
{ 
private android.os.IBinder mRemote;