question: void writeDataToFileLocked ( RandomAccessFile file , boolean addMayo , boolean addTomato , int whichFilling ) throws IOException { file . setLength ( 0L ) ; file . writeInt ( whichFilling ) ; file . writeBoolean ( addMayo ) ; file . writeBoolean ( addTomato ) ; Log . v ( TAG , "NEW STATE: mayo=" + addMayo + " tomato=" + addTomato + " filling=" + whichFilling ) ; }
target:  Handy helper routine to write the UI data to a file.