<?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 How to know if authentication failed using Auth only in Android (Java SDK V2). in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-know-if-authentication-failed-using-Auth-only-in-Android/m-p/186379#M7893</link>
    <description>&lt;P&gt;Hello, I just migrated my android application from the v1 android sdk. The migration went more or less smoothly. I did however run into a bit of an issue with authentication. My app interfaces with several different cloud providers, so it has a home screen/activity in which the user selects the provider to use. This then starts a new activity for the specific provider (ie Dropbox).&lt;BR /&gt;&lt;BR /&gt;I have read that direct use of AuthActivity is now discouraged and developers should be using the new Auth helper class. The problem is that I need to know if the authentication failed so that I can finish the activity and return to the home screen. However, I cannot find a way to tell if authentication failed using the Auth class.&lt;BR /&gt;&lt;BR /&gt;Every example I see, including the one from dropbox overrides 'onResume()' and attempts 'Auth.getOAuth2Token()'. This works fine in the examples because they have a button to sign into dropbox. In the event that authentication failed they can click the button to try again. In my case, the button is on the home activity, so the dropbox activity needs to close itself in the event of failure.&lt;BR /&gt;&lt;BR /&gt;I have my app working perfectly using AuthActivity directly and 'onActivityResult()', but I was wondering if there was anyway to do this through the Auth class.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;TLDR; Can I check if the AuthActivity failed using only the Auth class?&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:30:29 GMT</pubDate>
    <dc:creator>Scott A.26</dc:creator>
    <dc:date>2019-05-29T09:30:29Z</dc:date>
    <item>
      <title>How to know if authentication failed using Auth only in Android (Java SDK V2).</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-know-if-authentication-failed-using-Auth-only-in-Android/m-p/186379#M7893</link>
      <description>&lt;P&gt;Hello, I just migrated my android application from the v1 android sdk. The migration went more or less smoothly. I did however run into a bit of an issue with authentication. My app interfaces with several different cloud providers, so it has a home screen/activity in which the user selects the provider to use. This then starts a new activity for the specific provider (ie Dropbox).&lt;BR /&gt;&lt;BR /&gt;I have read that direct use of AuthActivity is now discouraged and developers should be using the new Auth helper class. The problem is that I need to know if the authentication failed so that I can finish the activity and return to the home screen. However, I cannot find a way to tell if authentication failed using the Auth class.&lt;BR /&gt;&lt;BR /&gt;Every example I see, including the one from dropbox overrides 'onResume()' and attempts 'Auth.getOAuth2Token()'. This works fine in the examples because they have a button to sign into dropbox. In the event that authentication failed they can click the button to try again. In my case, the button is on the home activity, so the dropbox activity needs to close itself in the event of failure.&lt;BR /&gt;&lt;BR /&gt;I have my app working perfectly using AuthActivity directly and 'onActivityResult()', but I was wondering if there was anyway to do this through the Auth class.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;TLDR; Can I check if the AuthActivity failed using only the Auth class?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:30:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-know-if-authentication-failed-using-Auth-only-in-Android/m-p/186379#M7893</guid>
      <dc:creator>Scott A.26</dc:creator>
      <dc:date>2019-05-29T09:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if authentication failed using Auth only in Android (Java SDK V2).</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-know-if-authentication-failed-using-Auth-only-in-Android/m-p/186380#M7894</link>
      <description>&lt;P&gt;I don't believe there's much you can do with the Auth class beyond just checking if the&amp;nbsp;getOAuth2Token method returns null. If using&amp;nbsp;AuthActivity directly works better for your use case I think that would be fine to do.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 05:07:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-know-if-authentication-failed-using-Auth-only-in-Android/m-p/186380#M7894</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-08-30T05:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if authentication failed using Auth only in Android (Java SDK V2).</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-know-if-authentication-failed-using-Auth-only-in-Android/m-p/186381#M7895</link>
      <description>&lt;P&gt;Excellent, thank you for the feedback!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 01:09:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-know-if-authentication-failed-using-Auth-only-in-Android/m-p/186381#M7895</guid>
      <dc:creator>Scott A.26</dc:creator>
      <dc:date>2016-08-31T01:09:43Z</dc:date>
    </item>
  </channel>
</rss>

