Code example for Parcel

Methods: readInt, readIntArray

0
            super(superState);
        } 
 
        private SavedState(Parcel in) {
            super(in);
            mInputPointer = in.readInt();
            in.readIntArray(mInput);
            mSign = in.readInt();
        } 
 
        @Override 
        public void writeToParcel(Parcel dest, int flags) {
            super.writeToParcel(dest, flags);
            dest.writeInt(mInputPointer);
            dest.writeIntArray(mInput);
            dest.writeInt(mSign);
        } 
 
        public static final Creator<SavedState> CREATOR
                = new Creator<SavedState>() { 
            public SavedState createFromParcel(Parcel in) {