<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FileUriExposedException in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216120#M11170</link>
    <description>I'm moving this to API forum as you'll need to fix the issue in your app for it to work.</description>
    <pubDate>Fri, 14 Apr 2017 11:08:16 GMT</pubDate>
    <dc:creator>Mark</dc:creator>
    <dc:date>2017-04-14T11:08:16Z</dc:date>
    <item>
      <title>FileUriExposedException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/209061#M11166</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Dropbox crashes. (dump is at the end of this question)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an app that I had developed for myself.&lt;/P&gt;&lt;P&gt;It used to work with Dropbox untill recently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am storing my myfile.or1 on dropbox and&lt;/P&gt;&lt;P&gt;in my app I am using&amp;nbsp;intent-filter to call my app to read it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not using dropbox API.&lt;/P&gt;&lt;P&gt;I did not move to 24 - my&amp;nbsp;&lt;SPAN&gt;targetSdkVersion is 23&lt;BR /&gt;My app works fine if I access myfile.or1 from ES file browser.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks Ori&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am adding the complete exception message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;03-01 09:44:46.670 7871-7871/? E/AndroidRuntime: FATAL EXCEPTION: main&lt;BR /&gt;Process: com.dropbox.android, PID: 7871&lt;BR /&gt;android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com_dropbox_android/files/u7110502/scratch/ori/Notes/Amazon.or1 exposed beyond app through Intent.getData()&lt;BR /&gt;at android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)&lt;BR /&gt;at android.net.Uri.checkFileUriExposed(Uri.java:2346)&lt;BR /&gt;at android.content.Intent.prepareToLeaveProcess(Intent.java:8933)&lt;BR /&gt;at android.content.Intent.prepareToLeaveProcess(Intent.java:8906)&lt;BR /&gt;at android.content.Intent.prepareToLeaveProcess(Intent.java:8894)&lt;BR /&gt;at android.app.Instrumentation.execStartActivity(Instrumentation.java:1690)&lt;BR /&gt;at android.app.ContextImpl.startActivity(ContextImpl.java:836)&lt;BR /&gt;at android.app.ContextImpl.startActivity(ContextImpl.java:813)&lt;BR /&gt;at android.content.ContextWrapper.startActivity(ContextWrapper.java:357)&lt;BR /&gt;at com.dropbox.android.util.ip.a(panda.py:46)&lt;BR /&gt;at dbxyzptlk.db3420200.bk.w.run(panda.py:219)&lt;BR /&gt;at com.dropbox.android.activity.lock.LockReceiver.a(panda.py:295)&lt;BR /&gt;at dbxyzptlk.db3420200.bk.v.a(panda.py:213)&lt;BR /&gt;at dbxyzptlk.db3420200.bk.v.a(panda.py:270)&lt;BR /&gt;at dbxyzptlk.db3420200.bk.aa.a(panda.py:182)&lt;BR /&gt;at dbxyzptlk.db3420200.bk.aa.a(panda.py:33)&lt;BR /&gt;at dbxyzptlk.db3420200.et.a.onPostExecute(panda.py:153)&lt;BR /&gt;at android.os.AsyncTask.finish(AsyncTask.java:660)&lt;BR /&gt;at android.os.AsyncTask.-wrap1(AsyncTask.java)&lt;BR /&gt;at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:677)&lt;BR /&gt;at android.os.Handler.dispatchMessage(Handler.java:102)&lt;BR /&gt;at android.os.Looper.loop(Looper.java:154)&lt;BR /&gt;at android.app.ActivityThread.main(ActivityThread.java:6209)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Native Method)&lt;BR /&gt;at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)&lt;BR /&gt;at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:25:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/209061#M11166</guid>
      <dc:creator>ori</dc:creator>
      <dc:date>2019-05-29T09:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: FileUriExposedException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/209120#M11167</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/365181"&gt;@ori&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this keeps happening, you can reach out to our API team here:&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;https://www.dropbox.com/developers/contact&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 12:03:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/209120#M11167</guid>
      <dc:creator>Zed</dc:creator>
      <dc:date>2017-03-01T12:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: FileUriExposedException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/210339#M11168</link>
      <description>&lt;P&gt;I found out that it happens with every app!&lt;/P&gt;&lt;P&gt;And every file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to open a file.txt from Dropbox -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dropbox offers me a list of apps that can open .txt file.&lt;/P&gt;&lt;P&gt;7 out of 9 caus&amp;nbsp;&lt;SPAN&gt;Dropbox to through FileUriExposedException&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 18:56:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/210339#M11168</guid>
      <dc:creator>ori</dc:creator>
      <dc:date>2017-03-07T18:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: FileUriExposedException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216096#M11169</link>
      <description>&lt;P&gt;This happens to me too&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 04:32:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216096#M11169</guid>
      <dc:creator>burnitall</dc:creator>
      <dc:date>2017-04-14T04:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: FileUriExposedException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216120#M11170</link>
      <description>I'm moving this to API forum as you'll need to fix the issue in your app for it to work.</description>
      <pubDate>Fri, 14 Apr 2017 11:08:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216120#M11170</guid>
      <dc:creator>Mark</dc:creator>
      <dc:date>2017-04-14T11:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: FileUriExposedException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216151#M11175</link>
      <description>&lt;P&gt;Hi, this is not an issue with our apps. Dropbox crashes before Android&amp;nbsp;even asks for which app to send it to. You can see that from ori's stack trace. It does not contain any symbol other than Android and Dropbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that Dropbox tries to export&amp;nbsp;a Uri with a "file" scheme. If you look at the documentation for&amp;nbsp;&lt;SPAN&gt;FileUriExposedException, it explains that for apps targeting N, that&amp;nbsp;exception is thrown, and the app needs to be changed to export a "content" scheme. The app exporting the Uri is Dropbox. Dropbox needs to be fixed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 15:21:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216151#M11175</guid>
      <dc:creator>burnitall</dc:creator>
      <dc:date>2017-04-14T15:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: FileUriExposedException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216162#M11180</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&lt;BR /&gt; I appology in advance, this is my first Android app.&lt;BR /&gt;So it may be the case that I am 180 degrees of track.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a&amp;nbsp;DropBox suggested implementation for a file chooser&lt;BR /&gt;But I ended up working around this issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On my phone - in DropBox - I set my folder to be 'available offline'&lt;BR /&gt;This reults a loacl copy of my folder on my phone at:&lt;BR /&gt;/sdcard/Android/data/com.dropbox.android/files/u7778889/scratch/my-folder&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then use ES File Exploer to accsess my local files &lt;BR /&gt;with an intent-filter for files not content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DropBox has a file chooser that I can integreate into my app:&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/java" target="_blank"&gt;https://www.dropbox.com/developers/documentation/java&lt;/A&gt;&lt;BR /&gt;The example works but I never integrated it with my app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 16:33:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216162#M11180</guid>
      <dc:creator>ori</dc:creator>
      <dc:date>2017-04-14T16:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: FileUriExposedException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216172#M11187</link>
      <description>Thanks for the reports! I'll send this over to the right people here to look into it.</description>
      <pubDate>Fri, 14 Apr 2017 17:15:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216172#M11187</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-14T17:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: FileUriExposedException</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216860#M11279</link>
      <description>&lt;P&gt;burnitall explained very good why the problem happens. In this blog post you can find how to fix it:&amp;nbsp;&lt;A href="https://medium.com/@ali.muzaffar/what-is-android-os-fileuriexposedexception-and-what-you-can-do-about-it-70b9eb17c6d0" target="_blank"&gt;https://medium.com/@ali.muzaffar/what-is-android-os-fileuriexposedexception-and-what-you-can-do-about-it-70b9eb17c6d0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has to be fixed in Dropbox and not in the target apps.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:58:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/FileUriExposedException/m-p/216860#M11279</guid>
      <dc:creator>MichaelRu</dc:creator>
      <dc:date>2017-04-19T14:58:21Z</dc:date>
    </item>
  </channel>
</rss>

