List of usage examples for android.os Bundle readFromParcel
public void readFromParcel(Parcel parcel)
From source file:com.jungle.base.utils.MiscUtils.java
public static Bundle bytesToBundle(byte[] bytes) { Bundle bundle = new Bundle(); if (bytes == null || bytes.length == 0) { return bundle; }/* w w w. j ava 2 s.c om*/ Parcel accountInfoParcel = Parcel.obtain(); accountInfoParcel.unmarshall(bytes, 0, bytes.length); accountInfoParcel.setDataPosition(0); bundle.readFromParcel(accountInfoParcel); accountInfoParcel.recycle(); return bundle; }