title: SetOutputFile in MediaRecorder in Storage Access Framework
body: <p>I want to use the Storage Access Framework (SAF) on Android with MediaRecorder. But under the SAF scheme, you should not rely on absolute path, but rather on Uri that you previously took permissions for. </p>
  
  <p>What is the good way to work, how can one use MediaRecorder consistently with the new approach of Android's SAF?
  Let's say, as a (well documented) starting point you start from here:</p>
  
  <pre><code>List&lt;UriPermission&gt; permission=  getContentResolver().getPersistedUriPermissions();
  </code></pre>
  
  <p>And you want to get there:</p>
  
  <pre><code>mMediaRecorder.setOutputFile(/*Some arguments*/);
  mMediaRecorder.prepare();
  </code></pre>
  
  <p>What are the intermediate steps?</p>