Android Serilization for reading the data
<pre><code>public class ClassTwo implements Serializable{
    /**
     * 
     */
   private static final long serialVersionUID = 1L;
   public static ArrayList&lt;ClassOne&gt; mArrayList;
    /**
     * Creates a new instance of Person
     */
    public ClassTwo() {
        mArrayList = new ArrayList&lt;ClassOne&gt;();
    }
 }

public class ClassOne implements Serializable{
    private int age1; 

    public ClassOne() {

    }
}


public class SerilizationTest extends Activity {
    private ClassOne obj1;
    private ClassTwo obj2;
    private ObjectInputStream ois;
    private ObjectOutputStream oos;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        obj1 = new ClassOne();
        obj1.setAge(100);

        obj2 = new ClassTwo();

        ClassTwo.mArrayList.add(0, obj1);
        ClassTwo.mArrayList.add(1, obj1);
        ClassTwo.mArrayList.add(2, obj1);
        ClassTwo.mArrayList.add(3, obj1);



        TextView t = new TextView(this);
        ClassOne a = null;
        ClassTwo b = null;
        String path = "/mnt/sdcard/serial.txt";

        try {
          oos = new ObjectOutputStream(new FileOutputStream(path));
          oos.writeObject(obj2);
        oos.close();

            ois = new ObjectInputStream(new FileInputStream(path));
            b = (ClassTwo) ois.readObject();
            ois.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (ClassNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        setContentView(t);
    }
}
</code></pre>

<p>is it possible that i have get all the objects which are stored in ArrayList of ClassOne from writing the only object of ClassTwo...</p>
