CopyPastor

Detecting plagiarism made easy.

Score: 0.9694763639198054; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-05-12
by Krishna

Original Post

Original - Posted on 2014-11-21
by Andy



            
Present in both answers; Present only in the new answer; Present only in the old answer;

[Here][1] is the info for the error you are receiving. I assume you are, but you need to be signed in to access Drive. When I run the sample app, at the very beginning it asks me to choose an account. Perhaps you do not have an account synced with the device you are using? There is an option to "add account", but maybe the behaviour is different when you have zero accounts. The documentation suggests that you either continue without using the API (simply because you cannot unless you sign in) or call startResolutionForResult(Activity, int) to prompt the user to sign in, but it would probably be easiest to just add the [account to your device][2].

[1]: https://developers.google.com/android/reference/com/google/android/gms/common/ConnectionResult#constants [2]: https://support.google.com/googleplay/answer/2521798?hl=en
[Here][1] is the info for the error you are receiving. I assume you are, but you need to be signed in to access Drive. When I run the sample app, at the very beginning it asks me to choose an account. Perhaps you do not have an account synced with the device you are using? There is an option to "add account", but maybe the behaviour is different when you have zero accounts. The documentation suggests that you either continue without using the API (simply because you cannot unless you sign in) or call `startResolutionForResult(Activity, int)` to prompt the user to sign in, but it would probably be easiest to just [add the account to your device][2].

[1]: http://developer.android.com/reference/com/google/android/gms/common/ConnectionResult.html#SIGN_IN_REQUIRED [2]: https://support.google.com/googleplay/answer/2521798?hl=en

        
Present in both answers; Present only in the new answer; Present only in the old answer;