title: How to create a public folder/file in Android 10
body: <p>Android Api 29 has big changes regarding files and folders.
  I have not found a way so far to create a folder in the internal storage that is public visible. 
  Every folder I create can be seen by my app only.</p>
  
  <p>I write an app that creates data files that shall be picked up by other apps, for instance the Total Commander to copy them to a destination.
  Everything worked fine until I activated Api 29. Some of my clients DO use pixel phones and they use Android 10.</p>
  
  <p>How can I create a folder and files in Android 10 that are public?</p>
  
  <p>This has been deprecated:</p>
  
  <pre><code>Environment.getExternalStorageDirectory();
  Environment.getExternalStoragePublicDirectory(type);
  </code></pre>
  
  <p>and when I use </p>
  
  <pre><code>File root = context.getExternalFilesDir(null);
  </code></pre>
  
  <p>The created files can only be seen by my app.
  How can I achieve the behavior that was valid before Android 10?</p>
  
  <p>Thanks in advance.</p>