Example usage for android.content ContentValues writeToParcel

List of usage examples for android.content ContentValues writeToParcel

Introduction

In this page you can find the example usage for android.content ContentValues writeToParcel.

Prototype

@Override
    public void writeToParcel(Parcel parcel, int flags) 

Source Link

Usage

From source file:Main.java

public static byte[] toByteArray(ContentValues contentValues) {
    Parcel obtain = Parcel.obtain();//w  w  w.j a v a  2 s. c o m
    contentValues.writeToParcel(obtain, 0);
    byte[] byteArray = obtain.marshall();
    obtain.recycle();
    return byteArray;
}