title: How to play a video file on Android with Delphi XE5 from a private dir
body: <p>I am with Delphi XE5 and Firemonkey building an Android app that is to play video files:
  This code is working:</p>
  
  <pre><code>var
    Intent: JIntent;
    fChosenVideo : string;
    Data: Jnet_Uri;
  
  
    fChosenVideo := IncludeTrailingPathDelimiter(TPath.GetSharedDownloadsPath) + 'myVideo.mp4';
    Data := TJnet_Uri.JavaClass.parse(StringToJString('file://' + fChosenVideo));
    Intent := TJIntent.Create;
    Intent.setAction(TJIntent.JavaClass.ACTION_VIEW);
    Intent.setDataAndType(Data, StringToJString('video/mp4'));
    SharedActivity.startActivity(Intent);
  </code></pre>
  
  <p>But I really want it to play from the apps private folder:</p>
  
  <pre><code>  fChosenVideo := IncludeTrailingPathDelimiter(TPath.GetDocumentsPath)+'myMovie.mp4';
  </code></pre>
  
  <p>I have found that I should be able to set permissions so external apps can read the file by setting MODE_WORLD_READABLE somewhere, but I cannot seem to grasp how to accomplish this.</p>
  
  <p>Any help is appreciated.
  Thanks in advance
  Jens Fudge</p>