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\
I had the same problem and here is my solution:
Parcel p = Parcel.obtain(); foo.writeToParcel(p, 0); p.setDataPosition(0); // <-- this is the key Foo foo2 = Foo.CREATOR.createFromParcel(p); p.recycle();