Java tutorial
//package com.java2s; //License from project: Apache License import android.content.ContentValues; import android.os.Parcel; public class Main { public static ContentValues contentValuesFromByteArray(byte[] byteArray) { Parcel obtain = Parcel.obtain(); obtain.unmarshall(byteArray, 0, byteArray.length); obtain.setDataPosition(0); ContentValues createFromParcel = ContentValues.CREATOR.createFromParcel(obtain); obtain.recycle(); return createFromParcel; } }