title: Android Internal Object Storage
body: <p>I am trying to save ArrayLists(ArrayOne, ArrayTwo, and ArrayThree) of EditText's to the internal storage. As commented, it clearly shows that it attempts the save, but I never get another TOAST after that. Any help as of why it doesn't show "Save completed" or any error is appreciated.</p>
  
  <pre><code>public void save(Context c)
  {
      String fileName;
      Toast.makeText(this, "Attempting Save", Toast.LENGTH_SHORT).show();//THIS SHOWS
      if(semester.getText().toString().length() == 0)
      {
          Toast.makeText(c, "Please enter a filename", Toast.LENGTH_SHORT).show();
      }
      else
      {
          fileName = "test.dat";
          FileOutputStream fos = null;
          ObjectOutputStream oos = null;
          try 
          {
              fos = this.openFileOutput(fileName, Context.MODE_PRIVATE);
              oos = new ObjectOutputStream(fos);
              oos.writeObject(ArrayOne);
              oos.writeObject(ArrayTwo);
              oos.writeObject(ArrayThree);
              Toast.makeText(c, "Save Completed", Toast.LENGTH_SHORT).show(); //THIS NEVER SHOWS
          } 
          catch (FileNotFoundException e) 
          {
              Toast.makeText(c, "Could not find " + fileName + " to save.", Toast.LENGTH_SHORT).show();
              e.printStackTrace();
          } 
          catch (IOException e)
          {
              e.printStackTrace();
          } 
          finally 
          {
              try 
              {
                  if (oos != null)
                      oos.close();
                  if (fos != null)
                      fos.close();
              } 
              catch (Exception e)
              { /* do nothing */ }
          }
      }
  }
  </code></pre>