Android upload/download text files from sdcard to Google Drive with Google Play Services -


i want implement google drive upload/download txt file android app using google play services, don't find right way it.

in dropbox easy:

file file = new file("working-draft.txt"); fileinputstream inputstream = new fileinputstream(file); entry response = mdbapi.putfile("/magnum-opus.txt", inputstream,                             file.length(), null, null); log.i("dbexamplelog", "the uploaded file's rev is: " + response.rev); 

but google drive google play services have not found simple way that. know how to?

by way, use own credentials (google service account) instead user account, way implement google play services?

thanks in advance

take look here, you've mentioned. don't know 'simple' requirement, though. or go through official demo code here. not 'two-liner' endeavor.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -