<?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: Dropbox Android SDK download File in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Android-SDK-download-File/m-p/330736#M19316</link>
    <description>&lt;P&gt;Can you clarify what 'result' is and where that's coming from? I don't see it getting set in the rest of your code.&lt;/P&gt;
&lt;P&gt;Also, note that 'lastModified' isn't a method for getting file metadata from the Dropbox API. Perhaps you're referring to the downloaded local file? You may instead be looking for&amp;nbsp;&amp;nbsp;'metadata.getClientModified' or 'metadata.getServerModified'.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 16:20:57 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-02-25T16:20:57Z</dc:date>
    <item>
      <title>Dropbox Android SDK download File</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Android-SDK-download-File/m-p/330680#M19310</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I use Android SDK to create/upload/download file. I've found your example on github.&lt;/P&gt;&lt;P&gt;It works okay. But I have a question about downloading of file.&lt;/P&gt;&lt;P&gt;When I download file (not chane anything in it, just dowloading), I always have "modified_date" is NOW (not the date of last updating of file). Why does modified_date change even on downloading?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:07:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Android-SDK-download-File/m-p/330680#M19310</guid>
      <dc:creator>alinaybabenko</dc:creator>
      <dc:date>2019-05-29T09:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox Android SDK download File</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Android-SDK-download-File/m-p/330722#M19312</link>
      <description>&lt;P&gt;Downloading a file shouldn't change the modified time. I just tried this and I can't reproduce that behavior.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, note that the API returns file metadata including fields named 'client_modified' and 'server_modified', not 'modified_date'. You can access them via '&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/FileMetadata.html#getClientModified--" target="_blank"&gt;getClientModified&lt;/A&gt;' and '&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/FileMetadata.html#getServerModified--" target="_blank"&gt;getServerModified&lt;/A&gt;' in &lt;A href="https://github.com/dropbox/dropbox-sdk-java" target="_blank"&gt;the Dropbox Java SDK&lt;/A&gt;, respectively.&lt;/P&gt;
&lt;P&gt;Can you share the version number of the&amp;nbsp;Dropbox SDK you're using, and the full code to reproduce this?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 15:37:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Android-SDK-download-File/m-p/330722#M19312</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-25T15:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox Android SDK download File</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Android-SDK-download-File/m-p/330732#M19314</link>
      <description>&lt;P&gt;I use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;com.dropbox.core:dropbox-core-sdk:3.0.11&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This is my code from DownlodingAsyncTask&lt;/P&gt;&lt;P&gt;FileMetadata metadata = (FileMetadata) mDbxClient.files().getMetadata("SOME_NAME");&lt;/P&gt;&lt;P&gt;File path = Environment.getExternalStoragePublicDirectory(&lt;BR /&gt;Environment.DIRECTORY_DOWNLOADS);&lt;BR /&gt;File file = new File(path, metadata.getName());&lt;/P&gt;&lt;P&gt;// Download the file.&lt;BR /&gt;try (OutputStream outputStream = new FileOutputStream(file)) {&lt;BR /&gt;mDbxClient.files().download(metadata.getPathLower(), metadata.getRev())&lt;BR /&gt;.download(outputStream);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;....&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And when in Activity&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;result.lastModified() is NOW&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Where am I wrong? Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 15:49:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Android-SDK-download-File/m-p/330732#M19314</guid>
      <dc:creator>alinaybabenko</dc:creator>
      <dc:date>2019-02-25T15:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox Android SDK download File</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Android-SDK-download-File/m-p/330736#M19316</link>
      <description>&lt;P&gt;Can you clarify what 'result' is and where that's coming from? I don't see it getting set in the rest of your code.&lt;/P&gt;
&lt;P&gt;Also, note that 'lastModified' isn't a method for getting file metadata from the Dropbox API. Perhaps you're referring to the downloaded local file? You may instead be looking for&amp;nbsp;&amp;nbsp;'metadata.getClientModified' or 'metadata.getServerModified'.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 16:20:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Android-SDK-download-File/m-p/330736#M19316</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-25T16:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox Android SDK download File</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Android-SDK-download-File/m-p/330933#M19340</link>
      <description>&lt;P&gt;Hello, Greg!&lt;/P&gt;&lt;P&gt;Thank you a lot. My mistake was that I didn't set time from&amp;nbsp;&lt;SPAN&gt;metadata.getClientModified/metadata.getServerModified as you had said.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you and have a nice day!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 14:06:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-Android-SDK-download-File/m-p/330933#M19340</guid>
      <dc:creator>alinaybabenko</dc:creator>
      <dc:date>2019-02-26T14:06:59Z</dc:date>
    </item>
  </channel>
</rss>

