- Android App: Preparing to Access Google Drive
- Android App: Setting up Google APIs Client Library for Java
- Android App: Connecting to Google Drive with Google APIs Client Library for Java
First thing is to read through the Google Drive Android API Getting Started. The following will add some clarity to setting up Google Developers Console using OAuth.
Select Create New Client ID under OAuth
Under Application type select Installed application. Under Installed application type enter a Package name and a Signing certificate fingerprint (SHA1).
To get the certificate SHA1 for the debug keystore:
1 |
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v
|
The debug keystore is typically located at ~/.android/debug.keystore , with the password android. See the Google Drive Android API Getting Started for further details.
Read part 2 here. It will show you how to connect to Google Drive using Google APIs Client Library for Java and Gradle on the Android platform.