<?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: what should be a file download  path in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284053#M92</link>
    <description>&lt;P&gt;sdk version=&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;'com.dropbox.core:dropbox-core-sdk:3.0.8'&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;code :&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;public  class &lt;/SPAN&gt;DownloadFileTask &lt;SPAN&gt;extends &lt;/SPAN&gt;AsyncTask&amp;lt;FileMetadata, Void, File&amp;gt; {&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;private final &lt;/SPAN&gt;Context &lt;SPAN&gt;mContext&lt;/SPAN&gt;;&lt;BR /&gt;    &lt;SPAN&gt;private final &lt;/SPAN&gt;DbxClientV2 &lt;SPAN&gt;mDbxClient&lt;/SPAN&gt;;&lt;BR /&gt;    String &lt;SPAN&gt;name&lt;/SPAN&gt;,&lt;SPAN&gt;path&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;private  &lt;/SPAN&gt;File &lt;SPAN&gt;file&lt;/SPAN&gt;;&lt;BR /&gt;    DownloadFileTask(Context context, DbxClientV2 dbxClient, String path,String name) {&lt;BR /&gt;        &lt;SPAN&gt;mContext &lt;/SPAN&gt;= context;&lt;BR /&gt;        &lt;SPAN&gt;mDbxClient &lt;/SPAN&gt;= dbxClient;&lt;BR /&gt;        &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;path &lt;/SPAN&gt;= path;&lt;BR /&gt;        &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;name&lt;/SPAN&gt;=name;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected &lt;/SPAN&gt;File doInBackground(FileMetadata... params) {&lt;BR /&gt;        &lt;SPAN&gt;try &lt;/SPAN&gt;{&lt;BR /&gt;           &lt;SPAN&gt;file&lt;/SPAN&gt;=&lt;SPAN&gt;new &lt;/SPAN&gt;File(&lt;SPAN&gt;path&lt;/SPAN&gt;+&lt;SPAN&gt;name&lt;/SPAN&gt;);&lt;BR /&gt;            &lt;SPAN&gt;// Download the file.&lt;BR /&gt;&lt;/SPAN&gt;                OutputStream outputStream = &lt;SPAN&gt;new &lt;/SPAN&gt;FileOutputStream(&lt;SPAN&gt;file&lt;/SPAN&gt;);&lt;BR /&gt;                &lt;SPAN&gt;mDbxClient&lt;/SPAN&gt;.files().download(&lt;SPAN&gt;"/Apps/AndroidDbAppStorage/"&lt;/SPAN&gt;+&lt;SPAN&gt;name&lt;/SPAN&gt;)&lt;BR /&gt;                        .download(outputStream);&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;file&lt;/SPAN&gt;;&lt;BR /&gt;        } &lt;SPAN&gt;catch &lt;/SPAN&gt;(DbxException | IOException e) {&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;return null&lt;/SPAN&gt;;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected void &lt;/SPAN&gt;onPostExecute(File result) {&lt;BR /&gt;        &lt;SPAN&gt;super&lt;/SPAN&gt;.onPostExecute(result);&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(result.length()!=&lt;SPAN&gt;0&lt;/SPAN&gt;) {&lt;BR /&gt;            Toast.&lt;SPAN&gt;makeText&lt;/SPAN&gt;(&lt;SPAN&gt;mContext&lt;/SPAN&gt;, &lt;SPAN&gt;"File downloaded"&lt;/SPAN&gt;, Toast.&lt;SPAN&gt;LENGTH_SHORT&lt;/SPAN&gt;).show();&lt;BR /&gt;            Intent intent = &lt;SPAN&gt;new &lt;/SPAN&gt;Intent(&lt;SPAN&gt;mContext&lt;/SPAN&gt;, LoginActivity.&lt;SPAN&gt;class&lt;/SPAN&gt;);&lt;BR /&gt;            &lt;SPAN&gt;mContext&lt;/SPAN&gt;.startActivity(intent);&lt;BR /&gt;        } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; it return empty file&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 06:37:12 GMT</pubDate>
    <dc:creator>kmsbs</dc:creator>
    <dc:date>2018-07-11T06:37:12Z</dc:date>
    <item>
      <title>what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283449#M84</link>
      <description>&lt;P&gt;what is the correct download path :&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; &lt;SPAN&gt;mDbxClient&lt;/SPAN&gt;.files().download(Path =?);&lt;/PRE&gt;
&lt;PRE&gt; &lt;SPAN&gt;mDbxClient&lt;/SPAN&gt;.files().download(&lt;SPAN&gt;"https://www.dropbox.com/home/Apps/AndroidDbAppStorage"&lt;/SPAN&gt;)&lt;BR /&gt;                        .download(outputStream);&lt;/PRE&gt;
&lt;P&gt;here its my code :&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;public  class &lt;/SPAN&gt;DownloadFileTask &lt;SPAN&gt;extends &lt;/SPAN&gt;AsyncTask&amp;lt;FileMetadata, Void, File&amp;gt; {&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;private final &lt;/SPAN&gt;Context &lt;SPAN&gt;mContext&lt;/SPAN&gt;;&lt;BR /&gt;    &lt;SPAN&gt;private final &lt;/SPAN&gt;DbxClientV2 &lt;SPAN&gt;mDbxClient&lt;/SPAN&gt;;&lt;BR /&gt;    String &lt;SPAN&gt;name&lt;/SPAN&gt;,&lt;SPAN&gt;path&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;private  &lt;/SPAN&gt;File &lt;SPAN&gt;file&lt;/SPAN&gt;;&lt;BR /&gt;    DownloadFileTask(Context context, DbxClientV2 dbxClient, String path,String name) {&lt;BR /&gt;        &lt;SPAN&gt;mContext &lt;/SPAN&gt;= context;&lt;BR /&gt;        &lt;SPAN&gt;mDbxClient &lt;/SPAN&gt;= dbxClient;&lt;BR /&gt;        &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;path &lt;/SPAN&gt;= path;&lt;BR /&gt;        &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;name&lt;/SPAN&gt;=name;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected &lt;/SPAN&gt;File doInBackground(FileMetadata... params) {&lt;BR /&gt;        &lt;SPAN&gt;try &lt;/SPAN&gt;{&lt;BR /&gt;           &lt;SPAN&gt;file&lt;/SPAN&gt;=&lt;SPAN&gt;new &lt;/SPAN&gt;File(&lt;SPAN&gt;path&lt;/SPAN&gt;+&lt;SPAN&gt;name&lt;/SPAN&gt;);&lt;BR /&gt;            &lt;SPAN&gt;// Download the file.&lt;BR /&gt;&lt;/SPAN&gt;                OutputStream outputStream = &lt;SPAN&gt;new &lt;/SPAN&gt;FileOutputStream(&lt;SPAN&gt;file&lt;/SPAN&gt;);&lt;BR /&gt;                &lt;SPAN&gt;mDbxClient&lt;/SPAN&gt;.files().download(&lt;SPAN&gt;"https://www.dropbox.com/home/Apps/AndroidDbAppStorage"&lt;/SPAN&gt;)&lt;BR /&gt;                        .download(outputStream);&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;// Tell android about the file&lt;BR /&gt;&lt;/SPAN&gt;            Intent intent = &lt;SPAN&gt;new &lt;/SPAN&gt;Intent(&lt;SPAN&gt;mContext&lt;/SPAN&gt;, LoginActivity.&lt;SPAN&gt;class&lt;/SPAN&gt;);&lt;BR /&gt;            &lt;SPAN&gt;mContext&lt;/SPAN&gt;.startActivity(intent);&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;file&lt;/SPAN&gt;;&lt;BR /&gt;        } &lt;SPAN&gt;catch &lt;/SPAN&gt;(DbxException | IOException e) {&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;return null&lt;/SPAN&gt;;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected void &lt;/SPAN&gt;onPostExecute(File result) {&lt;BR /&gt;        &lt;SPAN&gt;super&lt;/SPAN&gt;.onPostExecute(result);&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(result.length()!=&lt;SPAN&gt;0&lt;/SPAN&gt;) {&lt;BR /&gt;            Toast.&lt;SPAN&gt;makeText&lt;/SPAN&gt;(&lt;SPAN&gt;mContext&lt;/SPAN&gt;, &lt;SPAN&gt;"File downloaded"&lt;/SPAN&gt;, Toast.&lt;SPAN&gt;LENGTH_SHORT&lt;/SPAN&gt;).show();&lt;BR /&gt;        } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:05:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283449#M84</guid>
      <dc:creator>kmsbs</dc:creator>
      <dc:date>2019-05-29T09:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283468#M85</link>
      <description>what is the path pattern : &lt;BR /&gt;&lt;BR /&gt; mDbxClient.files().download("&lt;A href="https://www.dropbox.com/home/Apps/AndroidDbAppStorage/&amp;quot;+name" target="_blank"&gt;https://www.dropbox.com/home/Apps/AndroidDbAppStorage/"+name&lt;/A&gt;)&lt;BR /&gt;                        .download(outputStream);</description>
      <pubDate>Fri, 06 Jul 2018 11:51:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283468#M85</guid>
      <dc:creator>kmsbs</dc:creator>
      <dc:date>2018-07-06T11:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283487#M86</link>
      <description>&lt;P&gt;The path values you supply to the API should be paths relative to the root of the Dropbox account (or relative to the app folder root, if you're using an app with the app folder permission), not Dropbox web site URLs as you have here.&lt;BR /&gt;&lt;BR /&gt;So, for example, to upload a file "myfile.txt" to your root, you would use "/myfile.txt". Or, to upload it into a subfolder "Documents", you would use "/Documents/myfile.txt".&lt;BR /&gt;&lt;BR /&gt;You can also get the correct path values from Metadata.getPathLower, if/when you get the metadata for existing files elsewhere on the API:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/Metadata.html#getPathLower--" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/Metadata.html#getPathLower--&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 14:06:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283487#M86</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-06T14:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283704#M87</link>
      <description>here my path :&lt;BR /&gt;&lt;BR /&gt;/Apps/AndroidDbAppStorage/"+name&lt;BR /&gt;&lt;BR /&gt;it return empty file.</description>
      <pubDate>Mon, 09 Jul 2018 06:35:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283704#M87</guid>
      <dc:creator>kmsbs</dc:creator>
      <dc:date>2018-07-09T06:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283775#M88</link>
      <description>If the download call is returning successfully but is yielding a 0 byte file, it's likely because the file you have uploaded to Dropbox is 0 bytes long. You can check the Dropbox web site to confirm that.&lt;BR /&gt;&lt;BR /&gt;If you don't expect to have a 0 byte file uploaded, you should check on where/how you're uploading it, and then upload the correct version.</description>
      <pubDate>Mon, 09 Jul 2018 15:34:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283775#M88</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-09T15:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283787#M89</link>
      <description>File contain data and the size is in kb</description>
      <pubDate>Mon, 09 Jul 2018 16:28:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283787#M89</guid>
      <dc:creator>kmsbs</dc:creator>
      <dc:date>2018-07-09T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283797#M90</link>
      <description>&lt;P&gt;If something's not working as expected, I'll be happy to help, but I'll need some more information. Please reply with the following for the current issue:&lt;BR /&gt;&lt;BR /&gt;- the version number of the SDK/library you are using&lt;BR /&gt;- the steps to reproduce the current issue, including relevant code snippet(s)&lt;BR /&gt;- the full text of the unexpected output&lt;BR /&gt;- a screenshot showing where you're checking that the file is not actually 0 bytes&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 17:27:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/283797#M90</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-09T17:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284053#M92</link>
      <description>&lt;P&gt;sdk version=&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;'com.dropbox.core:dropbox-core-sdk:3.0.8'&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;code :&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;public  class &lt;/SPAN&gt;DownloadFileTask &lt;SPAN&gt;extends &lt;/SPAN&gt;AsyncTask&amp;lt;FileMetadata, Void, File&amp;gt; {&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;private final &lt;/SPAN&gt;Context &lt;SPAN&gt;mContext&lt;/SPAN&gt;;&lt;BR /&gt;    &lt;SPAN&gt;private final &lt;/SPAN&gt;DbxClientV2 &lt;SPAN&gt;mDbxClient&lt;/SPAN&gt;;&lt;BR /&gt;    String &lt;SPAN&gt;name&lt;/SPAN&gt;,&lt;SPAN&gt;path&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;private  &lt;/SPAN&gt;File &lt;SPAN&gt;file&lt;/SPAN&gt;;&lt;BR /&gt;    DownloadFileTask(Context context, DbxClientV2 dbxClient, String path,String name) {&lt;BR /&gt;        &lt;SPAN&gt;mContext &lt;/SPAN&gt;= context;&lt;BR /&gt;        &lt;SPAN&gt;mDbxClient &lt;/SPAN&gt;= dbxClient;&lt;BR /&gt;        &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;path &lt;/SPAN&gt;= path;&lt;BR /&gt;        &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;name&lt;/SPAN&gt;=name;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected &lt;/SPAN&gt;File doInBackground(FileMetadata... params) {&lt;BR /&gt;        &lt;SPAN&gt;try &lt;/SPAN&gt;{&lt;BR /&gt;           &lt;SPAN&gt;file&lt;/SPAN&gt;=&lt;SPAN&gt;new &lt;/SPAN&gt;File(&lt;SPAN&gt;path&lt;/SPAN&gt;+&lt;SPAN&gt;name&lt;/SPAN&gt;);&lt;BR /&gt;            &lt;SPAN&gt;// Download the file.&lt;BR /&gt;&lt;/SPAN&gt;                OutputStream outputStream = &lt;SPAN&gt;new &lt;/SPAN&gt;FileOutputStream(&lt;SPAN&gt;file&lt;/SPAN&gt;);&lt;BR /&gt;                &lt;SPAN&gt;mDbxClient&lt;/SPAN&gt;.files().download(&lt;SPAN&gt;"/Apps/AndroidDbAppStorage/"&lt;/SPAN&gt;+&lt;SPAN&gt;name&lt;/SPAN&gt;)&lt;BR /&gt;                        .download(outputStream);&lt;BR /&gt;&lt;BR /&gt;            &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;file&lt;/SPAN&gt;;&lt;BR /&gt;        } &lt;SPAN&gt;catch &lt;/SPAN&gt;(DbxException | IOException e) {&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;return null&lt;/SPAN&gt;;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;protected void &lt;/SPAN&gt;onPostExecute(File result) {&lt;BR /&gt;        &lt;SPAN&gt;super&lt;/SPAN&gt;.onPostExecute(result);&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(result.length()!=&lt;SPAN&gt;0&lt;/SPAN&gt;) {&lt;BR /&gt;            Toast.&lt;SPAN&gt;makeText&lt;/SPAN&gt;(&lt;SPAN&gt;mContext&lt;/SPAN&gt;, &lt;SPAN&gt;"File downloaded"&lt;/SPAN&gt;, Toast.&lt;SPAN&gt;LENGTH_SHORT&lt;/SPAN&gt;).show();&lt;BR /&gt;            Intent intent = &lt;SPAN&gt;new &lt;/SPAN&gt;Intent(&lt;SPAN&gt;mContext&lt;/SPAN&gt;, LoginActivity.&lt;SPAN&gt;class&lt;/SPAN&gt;);&lt;BR /&gt;            &lt;SPAN&gt;mContext&lt;/SPAN&gt;.startActivity(intent);&lt;BR /&gt;        } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; it return empty file&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 06:37:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284053#M92</guid>
      <dc:creator>kmsbs</dc:creator>
      <dc:date>2018-07-11T06:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284123#M93</link>
      <description>&lt;P&gt;I don't see anything obviously wrong in this code. It seems to be mostly copied/modified from &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/7ecc15cf0f51d6ae2ba5cdb334aac2c2f3474b87/examples/android/src/main/java/com/dropbox/core/examples/android/DownloadFileTask.java" target="_blank"&gt;the sample&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the other things I requested though? I.e., the output you're getting, and how you're checking the original file? I recall from &lt;A href="https://www.dropboxforum.com/t5/General-Discussion/My-uploaded-files-on-Dropbox-are-0-bytes-empty/m-p/283291#M76" target="_blank"&gt;your previous thread&lt;/A&gt; that you had an issue in your code that result in 0 byte files being uploaded to you account. It sounds like you&amp;nbsp;perhaps didn't fix all of them.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 15:56:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284123#M93</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-11T15:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284213#M94</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="details_item-that file i want to import" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/4029iCC4E2436F297B501/image-size/large?v=v2&amp;amp;px=999" role="button" title="File_Data.png" alt="details_item-that file i want to import" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;details_item-that file i want to import&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 05:48:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284213#M94</guid>
      <dc:creator>kmsbs</dc:creator>
      <dc:date>2018-07-12T05:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284214#M95</link>
      <description>output:&lt;BR /&gt; java.lang.NullPointerException: Attempt to invoke virtual method 'long java.io.File.length()' on a null object reference&lt;BR /&gt;at line :&lt;BR /&gt;protected void onPostExecute(File result) {&lt;BR /&gt;        super.onPostExecute(result);&lt;BR /&gt;        if (result.length()!=0) {&lt;BR /&gt;            Toast.makeText(mContext, "File downloaded", Toast.LENGTH_SHORT).show();&lt;BR /&gt;            Intent intent = new Intent(mContext, LoginActivity.class);&lt;BR /&gt;            mContext.startActivity(intent);&lt;BR /&gt;        } else {&lt;BR /&gt;&lt;BR /&gt;        }&lt;BR /&gt;    }</description>
      <pubDate>Thu, 12 Jul 2018 05:56:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284214#M95</guid>
      <dc:creator>kmsbs</dc:creator>
      <dc:date>2018-07-12T05:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284268#M96</link>
      <description>&lt;P&gt;Thanks for sharing that error output! That shows that you're getting a 'NullPointerException' for the 'File result' in your 'onPostExecute'. That is, the object itself is null, which is not the same as saying the downloaded file has zero length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll need to investigate why your code isn't actually returning the 'file' object. I suspect it's because something is going wrong with the downloading&amp;nbsp;or writing of the file, but,&amp;nbsp;upon closer inspection of your code, it seems you're not seeing it because you're silently throwing away potential exceptions here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;} catch (DbxException | IOException e) {
}&lt;/PRE&gt;
&lt;P&gt;You should add error handling there to take handle any issues that may arise (e.g., if you don't have permission to write to the local file path you specified, etc.).&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:42:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284268#M96</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-12T15:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284408#M97</link>
      <description>&lt;P&gt;this is the error :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;com.dropbox.core.v2.files.DownloadErrorException: Exception in 2/files/download: {".tag":"path","path":"not_found"}&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 04:24:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284408#M97</guid>
      <dc:creator>kmsbs</dc:creator>
      <dc:date>2018-07-13T04:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: what should be a file download  path</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284472#M98</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/734520"&gt;@kmsbs&lt;/a&gt;&amp;nbsp;Please don't post the same question in multiple places. It makes it harder to keep track of your question(s), and can cause spam for other people on older threads.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see you also posted a new thread for this, so I'll follow up there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/path-not-found-error/m-p/284453#M17409" target="_blank"&gt;https://www.dropboxforum.com/t5/API-Support-Feedback/path-not-found-error/m-p/284453#M17409&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 13:40:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/what-should-be-a-file-download-path/m-p/284472#M98</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-13T13:40:52Z</dc:date>
    </item>
  </channel>
</rss>

