Android:云端硬盘应用和Intent.ACTION_GET_CONTENT

时间:2015-07-08 11:15:43

标签: android android-intent google-drive-api android-contentresolver google-drive-android-api

我想使用 Intent.ACTION_GET_CONTENT 将已安装的Google云端硬盘应用中的文件导入我的应用 并且意图的mimetype设置为" * / *"。

我可以使用其他已安装的应用程序(如Dropbox,Onedrive和Box)执行此操作,但不能使用Google云端硬盘。 这是我的代码:

http://example.com/it/ciao

感谢。

1 个答案:

答案 0 :(得分:2)

答案非常晚,但您需要删除action.putExtra(Intent.EXTRA_LOCAL_ONLY, true);才能在选择器中查看Google云端硬盘选项。

相关问题