Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Intent; import android.os.Parcel; public class Main { public static Intent intentFromByteArray(byte[] byteArray) { Parcel obtain = Parcel.obtain(); obtain.unmarshall(byteArray, 0, byteArray.length); obtain.setDataPosition(0); Intent createFromParcel = Intent.CREATOR.createFromParcel(obtain); obtain.recycle(); return createFromParcel; } }