For brevity of code, I'd suggest using the DefaultParcelableCreator class.