<?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: How do I cancel the process that is being downloaded? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-cancel-the-process-that-is-being-downloaded/m-p/219022#M11531</link>
    <description>I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:&lt;BR /&gt;&lt;BR /&gt;    - the version number of the SDK you're using&lt;BR /&gt;    - the exact steps to reproduce the issue, including the code snippet(s)&lt;BR /&gt;    - the full text of the error/stack/any output&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
    <pubDate>Tue, 02 May 2017 20:21:01 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-05-02T20:21:01Z</dc:date>
    <item>
      <title>How do I cancel the process that is being downloaded?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-cancel-the-process-that-is-being-downloaded/m-p/218892#M11522</link>
      <description>&lt;P&gt;When I use DbxDownloader &amp;lt;FileMetadata&amp;gt; .download to download, halfway to cancel the download call DbxDownloader &amp;lt;FileMetadata&amp;gt; .close to operate, but I got a NullPointerException exception, Message is "Attempt to read from filed" int com.android.okio. Segment.limit 'on a null object reference ", but I have done a non-empty argument on the parameters.&lt;/P&gt;
&lt;P&gt;And I later use the DbxClientV2 object, such as get the file information: DbxClientV2.files (). GetMetadata (), will get ArrayIndexOutOfBoundsException exception.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:23:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-cancel-the-process-that-is-being-downloaded/m-p/218892#M11522</guid>
      <dc:creator>蕾雷</dc:creator>
      <dc:date>2019-05-29T09:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I cancel the process that is being downloaded?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-cancel-the-process-that-is-being-downloaded/m-p/219022#M11531</link>
      <description>I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:&lt;BR /&gt;&lt;BR /&gt;    - the version number of the SDK you're using&lt;BR /&gt;    - the exact steps to reproduce the issue, including the code snippet(s)&lt;BR /&gt;    - the full text of the error/stack/any output&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Tue, 02 May 2017 20:21:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-cancel-the-process-that-is-being-downloaded/m-p/219022#M11531</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-02T20:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I cancel the process that is being downloaded?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-cancel-the-process-that-is-being-downloaded/m-p/219046#M11534</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(1) Dropbox core API: 3.0.2&lt;/P&gt;
&lt;P&gt;(2) Download the code reference: &lt;A href="https://github.com/dropbox/dropbox-sdk-java/issues/66" target="_self"&gt;https://github.com/dropbox/dropbox-sdk-java/issues/66&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Download interface click back to cancel, call stopDownload function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; DbxDownloader&amp;lt;FileMetadata&amp;gt; &amp;nbsp;: &amp;nbsp;downloaer
&amp;nbsp; &amp;nbsp; &amp;nbsp; public void stopDownload() {
if (downloaer != null) {
try {
downloaer.close();
downloaer = null;
} catch (Exception e){
downloaer = null;
e.printStackTrace();
}
}
}&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(3) stopDownload throws an exception:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2017-05-03-09-44-40-1.png" style="width: 768px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/425iA7AA29BA5B495A33/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_2017-05-03-09-44-40-1.png" alt="Screenshot_2017-05-03-09-44-40-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 18:38:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-cancel-the-process-that-is-being-downloaded/m-p/219046#M11534</guid>
      <dc:creator>蕾雷</dc:creator>
      <dc:date>2017-05-03T18:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I cancel the process that is being downloaded?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-cancel-the-process-that-is-being-downloaded/m-p/219259#M11562</link>
      <description>Thanks! We'll look into it.&lt;BR /&gt;&lt;BR /&gt;For our reference though, can you also share how you're constructing your client object?</description>
      <pubDate>Wed, 03 May 2017 21:29:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-cancel-the-process-that-is-being-downloaded/m-p/219259#M11562</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-03T21:29:11Z</dc:date>
    </item>
  </channel>
</rss>

