I have a class which has implemented Parcelable. Can I do something like the following to create a new instance of a class?:
Foo foo = new Foo(\"a\", \"b\", \"c\
There is a shorter way:
Foo foo1 = new Foo("a", "b", "c"); Parcel p = Parcel.obtain(); p.writeValue(foo1); p.setDataPosition(0); Foo foo2 = (Foo)p.readValue(Foo.class.getClassLoader()); p.recycle();