

If you use Android Studio, you should be able to make use of it. It is a bit broader and deals with both GDAA and REST APIs, as well as with the Google account pick process. I have some code on GitHub that I can't claim is simpler, but (probably) more in line with current lib version. GooPlayServices are on the 6.5.+ version and last update of that code was half a year ago. The Quick Start you play with as as simple as it gets, to answer you question.īut it may be outdated (I don't know, last time I ran it was 8 months ago).

setResultCallback(new ResultCallback() void onResult(DriveContentsResult result) `Īm I making any errors above? Are there any better simple example to access Google Drive from Android? Start by creating a new contents, and setting a callback.ĭ(mGoogleApiClient) * Create a new file and save it to Drive. Private GoogleApiClient mGoogleApiClient Private static final int REQUEST_CODE_RESOLUTION = 3 Private static final int REQUEST_CODE_CREATOR = 2 Private static final int REQUEST_CODE_CAPTURE_IMAGE = 1 Private static final String TAG = "android-drive-quickstart" Public class MainActivity extends Activity implements ConnectionCallbacks, The user is prompted with a pre-made dialog which allows

This is the code which I am trying to run (Originally from here) import java.io.ByteArrayOutputStream Inserted the Client key in AndroidManifest.xml as I have turned on the Drive API and Drive SDK in Google Developer Console and generated a OAuth Client id. I am trying to access the google drive through android app.
