unmarshall byte array with Parcel - Android File Input Output

Android examples for File Input Output:Byte Array

Description

unmarshall byte array with Parcel

Demo Code


//package com.java2s;
import android.os.Parcel;

public class Main {
    private static Parcel unmarshall(byte[] bytes) {
        Parcel parcel = Parcel.obtain();
        parcel.unmarshall(bytes, 0, bytes.length);
        parcel.setDataPosition(0);//from   w ww .jav a  2s .  c om
        return parcel;
    }
}

Related Tutorials