title: Delphi XE5 Android problems locating file
body: <p>I have problem to find and open a file that I have stored on my phone from my pc.
  Despite the fine solution in <a href="https://stackoverflow.com/questions/21099776/delphi-xe5-android-storage-path-problems" title="this">this answer</a> I can't get it to work.
  I'm running on a HTC Sensation Z710e</p>
  
  <p>Here is the code I'm trying to run:</p>
  
  <pre><code>function GetSDCardPath: string;
  var MusicPathLength: integer;
      MusicPath, SDCardPath: string;
  begin
   MusicPath:=System.IOUtils.TPath.GetSharedMusicPath;
   MusicPathLength:=Length(MusicPath);
   SDCardPath:=Copy(MusicPath, 0, MusicPathLength-5);
   Result:=SDCardPath;
  end;
  
  procedure TForm3.Button1Click(Sender: TObject);
  var sr:TSearchRec;
  begin
    CardPath:=TPath.Combine(GetSDCardPath,'*.*');
  
    if (FindFirst(CardPath,faNormal,sr)=0) then
    begin
      repeat
        Memo1.Lines.Add(sr.Name);
      until FindNext(sr)&lt;&gt;0;
      FindClose(sr);
    end;
  end;
  </code></pre>
  
  <p>I did a second test with the code below and I can obviously store a file as the filename comes up in the filelist, but it seems like it not is stored on the sdcard, at least not the one that appears as my external drive  F: on my pc. The TPath.GetDocumentsPath should point to the sdcard, shouldn't it?</p>
  
  <pre><code>procedure TForm3.Button1Click(Sender: TObject);
  var sr:TSearchRec;
  begin
    CardPath:=TPath.Combine(TPath.GetDocumentsPath,'*.*');
    Memo1.Lines.Add(CardPath);
  
    if (FindFirst(CardPath,faAnyFile,sr)=0) then
    begin
      repeat
        Memo1.Lines.Add(sr.Name);
      until FindNext(sr)&lt;&gt;0;
      FindClose(sr);
    end;
  end;
  
  procedure TForm3.WriteClick(Sender: TObject);
  var
    s: string;
    F:TextFile;
  begin
    Memo1.Lines.Clear;
    s := TPath.Combine(TPath.GetDocumentsPath,'file2.txt');
    AssignFile(F,s);
    ReWrite(F);
    Writeln(F,'Test');
    CloseFile(F);
  end;
  </code></pre>
  
  <p>First I click the Write button to write the file and then I list the files in the directory by clicking the Button1.
  The CardPath is /data/data/com.embarcadero.TestApp2/files/<em>.</em>
  I have a Android/data/com.embarcadero.TestApp2/files/ folder visible on my device from my pc, but no file there. Is the file stored internaly in my device?</p>