<?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 Crash when linking account on Dropbox JAVA API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Crash-when-linking-account-on-Dropbox-JAVA-API/m-p/546137#M26036</link>
    <description>&lt;P&gt;Hi, I'm trying to build a JAVA app on Android studio, and I want to upload a file to Dropbox.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when linking my account, it crashes.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/25341i83F03E43572D18D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have put my right token.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error happen on this line :&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FullAccount account = client.users().getCurrentAccount()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;I have followed the exact same official tutorial on github, so I don't know why it crashes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the error log :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E/AndroidRuntime: FATAL EXCEPTION: main&lt;BR /&gt;Process: com.example.testdropbox, PID: 24166&lt;BR /&gt;android.os.NetworkOnMainThreadException&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;edit : I added the code into a Async task, and it's fixed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 16:44:03 GMT</pubDate>
    <dc:creator>MatthieuDelisle</dc:creator>
    <dc:date>2021-09-21T16:44:03Z</dc:date>
    <item>
      <title>Crash when linking account on Dropbox JAVA API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Crash-when-linking-account-on-Dropbox-JAVA-API/m-p/546137#M26036</link>
      <description>&lt;P&gt;Hi, I'm trying to build a JAVA app on Android studio, and I want to upload a file to Dropbox.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when linking my account, it crashes.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/25341i83F03E43572D18D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have put my right token.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error happen on this line :&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FullAccount account = client.users().getCurrentAccount()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;I have followed the exact same official tutorial on github, so I don't know why it crashes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the error log :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E/AndroidRuntime: FATAL EXCEPTION: main&lt;BR /&gt;Process: com.example.testdropbox, PID: 24166&lt;BR /&gt;android.os.NetworkOnMainThreadException&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;edit : I added the code into a Async task, and it's fixed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 16:44:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Crash-when-linking-account-on-Dropbox-JAVA-API/m-p/546137#M26036</guid>
      <dc:creator>MatthieuDelisle</dc:creator>
      <dc:date>2021-09-21T16:44:03Z</dc:date>
    </item>
  </channel>
</rss>

