-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synchronous auth process problem. #73
Comments
I have enclosed two demo projects (converted from LearnAndroid) with hidden credentials. Above mentioned error log is not reproduced in this simplified project, but I see other error message in logcat
in both (async and sync) cases. |
Hi @isabsent , thanks for the code and finally I figured it out. In our SDK, we assume it should be run in a background so then we can let you continue to the right page. I changed your code in OneDrive.java:onCreate() begins from line86 like this:
and it works. Please let me know if it helps. |
As I understand it is not a synchronous call, because
may be called BEFORE token was retrieved? |
@isabsent yes you are right. It is a work around for now. Thanks for reporting it and we will fix it soon. |
Thanks! Please, take a look on this issue too. |
As you mentioned in this SO answer synchronous auth process is possible. I need to implement it in one single OneDriveActivity (avoiding Fragments and Application) as:
Last code string that is called is:
After it I see exception in logcat:
Code in "catch" and "finally" is never called too.
Would you be so kind to give us a FULL working code sample of Activity with synchronous auth process?
The text was updated successfully, but these errors were encountered: