我正在Android应用程序中使用google Drive API,并想创建一个txt文件并将该文本文件上传到Google Drive。
例如,如果字符串是:“ Hello world”,它将使用给定的字符串创建一个txt文件,并将其上传到Google云端硬盘。
这可能吗?
谢谢,
最佳答案
可以做到的。创建一个普通的文本文件。
看到这个:
How To Read/Write String From A File In Android
然后使用API上传它。
看到这个:
How to upload a file to Google Drive