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).
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.
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.
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.
Thank you
TLDR; Can I check if the AuthActivity failed using only the Auth class?