title: Android Get Application Start Up Path
body: <p>In C# there are Application.StartUpPath or Application.AppDataPath global methods to get a path where I would store Application Settings.</p>
  
  <p>I tried <code>static String fName = System.getProperty("user.dir") + "SatCli.conf";</code></p>
  
  <p><strong>"/SatCli.conf"</strong> - is the resulted fName</p>
  
  <p>then I call</p>
  
  <pre><code> BufferedOutputStream oustream = new BufferedOutputStream(new
   FileOutputStream(fName, false));
  </code></pre>
  
  <p>and I am getting the common exception</p>
  
  <pre><code>"/SatCli.conf: open failed: EROFS (Read-only file system)"
  </code></pre>
  
  <p>Well, I've been writing apps under Unix and I understand maybe the file name is refering to internal memory.. in other words to the root part of system file system.</p>
  
  <p>Or maybe not.. maybe it refers to the App Folder?</p>
  
  <p>Anyway, what I would like to get is the correct method to get the right folder to store the settings data.
  Also, what is important, I need it before any context is built, when static fields are initializing.</p>
  
  <p>Thank you for any relevant hint and help.</p>