List of utility methods to do Parcelable Create
T | parcelableFromByteArray( Parcelable.Creator parcelable From Byte Array Parcel obtain = Parcel.obtain();
obtain.unmarshall(byteArray, 0, byteArray.length);
obtain.setDataPosition(0);
T createFromParcel = creator.createFromParcel(obtain);
obtain.recycle();
return createFromParcel;
|
byte[] | arrayToByteArray(ContentValues[] contentValues) array To Byte Array Parcel obtain = Parcel.obtain(); obtain.writeParcelableArray(contentValues, 0); byte[] byteArray = obtain.marshall(); obtain.recycle(); return byteArray; |