title: Accessing Data Saved to Internal Storage on Android Device
body: <p>I am new to Android Studio and have gone through a ton of tutorials. I have a working accelerometer and want to save the data to a .csv file. 
  My code below works because when I use the emulator I am able to export the .csv file , with the correct data, to my desktop and open it. I have these two permissions in my <code>AndroidManifest.xml</code></p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
  &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/&gt;
  </code></pre>
  
  <p>When I go into the file explorer on my device using apps such as Astro or ES and go to <code>data/data/</code> I do not even see my package there even though the app works on my phone. Is there something you need to do to have the package show up in the file explorer? I would like to get the data from the .csv from my phone.</p>
  
  <p>I was hoping someone had some in</p>
  
  <pre><code>String Entry = x.getText().toString() + ", "
          + y.getText().toString() + ", " +
          z.getText().toString() + "\n";
  try{
      FileOutputStream outPut = openFileOutput(FILENAME, Context.MODE_APPEND);
      outPut.write(Entry.getBytes());
      outPut.close();
  }catch(Exception err){
      err.printStackTrace();
  }
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>String dir = Environment.getExternalStorageDirectory().getAbsolutePath();
          String FILENAME = "keyboardTest.csv";
          File file = new File (dir, FILENAME)
         try {   
                  FileOutputStream out = new FileOutputStream(file, true);
                  out.write(Entry.getBytes());
                  out.close();
              } catch (Exception err) {
                  err.printStackTrace();
              }
  </code></pre>
  
  <p>Now I am able to access the file on my phone </p>