Refer:
- Go to the .
- Select a project, or create a new one.
- In the sidebar on the left, select APIs & auth. In the displayed list of APIs, make sure the Drive API status is set to ON.
- In the sidebar on the left, select Registered apps.
- At the top of the page, select Register App.
- Type a name for the application and select Android.
- Choose Accessing APIs directly from Android.
- In the Package name field, enter your Android's app's (open AndroidManifest.xml , see [package] ).
- Copy the SHA1 fingerprint, which is highlighted in the example above.
Paste the SHA1 fingerprint into the certificate fingerprint field in the Cloud Console.
Click Register.