在android中使用Intent.ACTION_GET_CONTENT时是否可以隐藏谷歌驱动器? [英] Is it possible to hide google drive while using Intent.ACTION_GET_CONTENT in android?
问题描述
我试图用提到的代码打开一个文件管理器,但我不想在导航栏中看到谷歌驱动器选项.
我尝试了不同的解决方案,但仍然没有得到我的解决方案,我想知道这可能吗?
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);intent.putExtra(Intent.EXTRA_LOCAL_ONLY,真);intent.setType("*/*");startActivityForResult(Intent.createChooser(intent, "选择一个文件上传"),FILE_SELECT_CODE);
有可能吗?
没有记录和支持的方法来执行此操作.可能有几十个应用程序都支持 ACTION_GET_CONTENT
/ACTION_OPEN_DOCUMENT
.Google 云端硬盘是否属于其中之一在很大程度上取决于用户.
EXTRA_LOCAL_ONLY
可能会限制贡献应用的数量,但云存储提供商(如 Google Drive)可能有本地缓存的文档,即使对于仅限本地"的请求,他们仍然可以使用这些文档.>
I have tried to open a file manager with mentioned code but I don't want to visible google drive option in the navigation bar.
I have tried the different solution but still, I didn't get my solution and wondering Is it possible or not?
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
intent.setType("*/*");
startActivityForResult(Intent.createChooser(intent, "Select a File
to Upload"),FILE_SELECT_CODE);
Is it possible or not?
There is no documented and supported means for doing this. There could be dozens of apps all supporting ACTION_GET_CONTENT
/ACTION_OPEN_DOCUMENT
. Whether Google Drive is among them is largely up to the user.
EXTRA_LOCAL_ONLY
may limit the number of contributing apps, but cloud storage providers (like Google Drive) may have locally-cached documents that they still make available even for "local-only" requests.
这篇关于在android中使用Intent.ACTION_GET_CONTENT时是否可以隐藏谷歌驱动器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!