Android examples for File Input Output:Byte Array Convert
deserialize byte array to Object
//package com.java2s; import java.io.ByteArrayInputStream; import java.io.ObjectInputStream; import android.util.Log; public class Main { public static Object deserialize(byte[] data) { try {//from w ww .j a v a2 s. c om ByteArrayInputStream in = new ByteArrayInputStream(data); ObjectInputStream is = new ObjectInputStream(in); return is.readObject(); } catch (Exception e) { e.printStackTrace(); } return null; } }