Here you can find the source of arrayToByteArray(ContentValues[] contentValues)
public static byte[] arrayToByteArray(ContentValues[] contentValues)
//package com.java2s; //License from project: Apache License import android.content.ContentValues; import android.os.Parcel; public class Main { public static byte[] arrayToByteArray(ContentValues[] contentValues) { Parcel obtain = Parcel.obtain(); obtain.writeParcelableArray(contentValues, 0); byte[] byteArray = obtain.marshall(); obtain.recycle();/*from www. ja v a 2s . c o m*/ return byteArray; } }