Here you can find the source of arrayContentValuesFromByteArray( byte[] byteArray)
public static ContentValues[] arrayContentValuesFromByteArray( byte[] byteArray)
//package com.java2s; //License from project: Apache License import android.content.ContentValues; import android.os.Parcel; import android.os.Parcelable; public class Main { public static ContentValues[] arrayContentValuesFromByteArray( byte[] byteArray) { Parcel obtain = Parcel.obtain(); obtain.unmarshall(byteArray, 0, byteArray.length); obtain.setDataPosition(0);//from w w w .j a v a 2 s.c o m Parcelable[] contentValues = obtain .readParcelableArray(ContentValues.class.getClassLoader()); ContentValues[] values = new ContentValues[contentValues.length]; for (int i = 0; i < contentValues.length; i++) { values[i] = (ContentValues) contentValues[i]; } obtain.recycle(); return values; } }