title: How to Save and Load Data from internal memory, NOT SD, NOT SQL,NOT SHARED PREFERENCE
body: <p>Wow, I cant believe how many problems related to loading and saving to internal memory.
  I find that I can only Save to a protected area related to my app. 
  I am not sure I can even create a directory in that area.
  Storing to the SD I've mastered, but the requirements are that if no sdcard is available or has been removed the app continues be able to load and save user settings.  I have 120 different data items so shared preferences are not the way. Cache is not persistent.</p>
  
  <p>I currently have as a method :</p>
  
  <pre><code>public static void SaveUserPrefs()
  {
   try
  {
   //FileOutputStream fos = openFileOutput("userPrefs.dat", Context.MODE_PRIVATE);
   FileOutputStream fos = new FileOutputStream( "userPrefs.dat"); 
   BufferedOutputStream bos = new BufferedOutputStream(fos); //to get a buffered stream  
   ObjectOutputStream oos = new ObjectOutputStream(bos);
   oos.writeFloat(versionNumber);
   oos.writeInt(autoWifiStart);
   oos.writeInt(autoAirPlane);
   ... many more items and file close
  </code></pre>
  
  <p>I get file not found exceptiom /userPrefs.dat Read only file system
  You would think the same code would work either external or internal, but doesnt.
  I have tried the comment out code also with same results.
  Where and how do I save this data?
  And do I need to do something different to load it?
  I do have permission set to save_external_Storage.</p>