Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.ByteArrayInputStream; import java.io.ObjectInputStream; import android.util.Base64; import android.util.Base64InputStream; public class Main { public static Object stringToObject(String encodedObject) { try { return new ObjectInputStream( new Base64InputStream(new ByteArrayInputStream(encodedObject.getBytes()), Base64.DEFAULT)) .readObject(); } catch (Exception e) { e.printStackTrace(); } return null; } }