Here you can find the source of contentValuesFromByteArray(byte[] byteArray)
public static ContentValues contentValuesFromByteArray(byte[] byteArray)
//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);/*ww w . j av a 2 s . c om*/ ContentValues createFromParcel = ContentValues.CREATOR .createFromParcel(obtain); obtain.recycle(); return createFromParcel; } }