Code example for Parcel

Methods: readInt, readString, readValue

0
        /** 
         * Constructor called from {@link #CREATOR} 
         */ 
        private SavedState(Parcel in) {
            super(in);
            mSerializedPattern = in.readString();
            mDisplayMode = in.readInt();
            mInputEnabled = (Boolean) in.readValue(null);
            mInStealthMode = (Boolean) in.readValue(null);
            mTactileFeedbackEnabled = (Boolean) in.readValue(null);
        } 
 
        public String getSerializedPattern() {
            return mSerializedPattern;
        } 
 
        public int getDisplayMode() { 
            return mDisplayMode;
        } 
 
        public boolean isInputEnabled() {