You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Sample Android App demonstrating how to fetching data from user's Google Sheet using Java API
Notifications You must be signed in to change notification settings
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go to fileThis app contains sample code on how to implement the Google SpreadSheet API and Google Sign-In(Android Client API). For the time being I have just implemented the methods to read and write(Append to be more specific) using the java client library. More code for achieving different features can be found in the official documentation To use this code
First go to console.developers.google.com and enable G+ api and Google SpreadSheet Api Then get the google services JSON from here and add it to the app folder of your android project
classpath 'com.google.gms:google-services:3.1.0'
Add the following dependencies in the App level gradle build file
Android < . configurations.all < resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9' >. >
compile 'com.google.android.gms:play-services-auth:11.6.2' compile('com.google.apis:google-api-services-sheets:v4-rev493-1.23.0') < exclude group: 'org.apache.httpcomponents' >compile 'com.google.android.gms:play-services-auth:11.6.2' compile 'pub.devrel:easypermissions:0.3.0' compile 'com.google.oauth-client:google-oauth-client-jetty:1.23.0' compile('com.google.api-client:google-api-client-android:1.23.0')Below everything else add
apply plugin: 'com.google.gms.google-services'