Example usage for android.content ContentValues CREATOR

List of usage examples for android.content ContentValues CREATOR

Introduction

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

Prototype

Parcelable.Creator CREATOR

To view the source code for android.content ContentValues CREATOR.

Click Source Link

Usage

From source file:Main.java

public static ContentValues contentValuesFromByteArray(byte[] byteArray) {
    Parcel obtain = Parcel.obtain();//from  ww w .j a v a2  s. c om
    obtain.unmarshall(byteArray, 0, byteArray.length);
    obtain.setDataPosition(0);
    ContentValues createFromParcel = ContentValues.CREATOR.createFromParcel(obtain);
    obtain.recycle();
    return createFromParcel;
}