title: get file from /data/data/my.app/files path in android programmatically
body: <p>I create a xml file in this path /data/data/my.app/files/new.xml with below code:</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
  
                  FileOutputStream fileos = null;
                  try{
                      fileos = openFileOutput("new.xml", MODE_PRIVATE);
  
                  }catch(FileNotFoundException e)
                  {
                      Log.e("FileNotFoundException",e.toString());
                  }
                  XmlSerializer serializer = Xml.newSerializer();
                  try{
                  serializer.setOutput(fileos, "UTF-8");
                  serializer.startDocument(null, Boolean.valueOf(true));
                  serializer.startTag(null, "root");
                  serializer.startTag(null, "Child1");
                  serializer.endTag(null, "Child1");
                  serializer.startTag(null, "Child2");
                  serializer.attribute(null, "attribute", "value");
                  serializer.endTag(null, "Child2");
                  serializer.startTag(null, "Child3");
                  serializer.text("Some text inside child 3");
                  serializer.endTag(null,"Child3");
                  serializer.endTag(null,"root");
                  serializer.endDocument();
                  serializer.flush();
                  fileos.close();
  
                  }catch(Exception e)
                  {
                      Log.e("Exception","Exception occured in wroting");
                  }
  
              }
  }
  </code></pre>
  
  <p>Now i want send this file with socket but i don't know how access to the file path programmatically.
  I've tried most of the folders in the Environment object like Environment.getDataDirectory().getAbsolutePath() but that only returns /data.
  How can i access to this path and read my xml file?</p>
  
  <p>Exactly i see <a href="https://stackoverflow.com/questions/19596926/getting-data-data-my-app-files-path-programmatically">this</a> link but i can't find my answer.</p>