![](/img/trans.png)
[英]Android - How to download the file from google drive to android SDCARD?
[英]Android upload/download text files from sdcard to Google Drive with Google Play Services
我想使用Google Play服务在我的Android应用中实现Google Drive的上传/下载txt文件,但是我找不到正确的方法。
在保管箱中非常简单:
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);
但是对于带有Google Play服务的Google云端硬盘,我还没有找到一种简单的方法。 你知道怎么?
顺便说一句,我想使用自己的凭据(Google服务帐户)而不是用户帐户,通过Google Play服务实现该身份的方式是什么?
提前致谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.