I followed all steps listen under https://developers.google.com/drive/quickstart-android It works! But if im going to merge the given code/package to an other project, im getting
W/System.err(793): com.google.android.gms.auth.UserRecoverableAuthException: NeedPermission
W/System.err(793): at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
W/System.err(793): at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
W/System.err(793): at com.drive.main.MainActivity$GetToken.doInBackground(MainActivity.java:139)
W/System.err(793): at com.drive.main.MainActivity$GetToken.doInBackground(MainActivity.java:1)
W/System.err(793): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
W/System.err(793): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
W/System.err(793): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
W/System.err(793): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
W/System.err(793): at java.lang.Thread.run(Thread.java:856)
I/System.out(793): An error occurred: com.google.api.client.googleapis.extensions.android.gms.auth.UserRecoverableAuthIOException
Am I doing something wrong in the Manifest or should i change something in the Api Console?
Found only one thread under stackoverflow without any answer Google Drive Authentication Exception - Needs Permission? (v2)
Any ideas would be helpful. Thank you.