How to fetch txt file from whatsapp fileprovider
<p>I trying to get whatsapp chat txt file.
As i saw on Android documentation:</p>

<pre><code>private void handleSentMultipleAttached(Intent intent) {
    ArrayList&lt;Uri&gt; attachedFilesUris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);
    if (attachedFilesUris != null) {
        for (Uri uri : attachedFilesUris) {
            File f = new File(uri.getPath());
        }
    }
}
</code></pre>

<p>The uri is:</p>

<pre><code>content://com.whatsapp.fileprovider/external/.Shared/WhatsApp%20Chat%20with.txt
</code></pre>

<p>But i can't use the f file because file is not exist in that path.</p>

<p>I'v already open permission in the manifest:</p>

<pre><code>&lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
&lt;uses-permission android:name="android.permission.READ_USER_DICTIONARY" /&gt;
</code></pre>

<p>What should i do so i can use the file?</p>