question: boolean compareStateFile ( ParcelFileDescriptor oldState ) { FileInputStream instream = new FileInputStream ( oldState . getFileDescriptor ( ) ) ; DataInputStream in = new DataInputStream ( instream ) ; try { int stateVersion = in . readInt ( ) ; if ( stateVersion > AGENT_VERSION ) { return true ; } int lastFilling = in . readInt ( ) ; boolean lastMayo = in . readBoolean ( ) ; boolean lastTomato = in . readBoolean ( ) ; return ( lastFilling != mFilling ) || ( lastTomato != mAddTomato ) || ( lastMayo != mAddMayo ) ; } catch ( IOException e ) { return true ; } }
target:  Helper routine - read a previous state file and decide whether to perform a backup based on its contents.