man*_*ari 5 android filechooser google-drive-api
这是一个被问到的问题,但我没有使用该解决方案解决它。这是我的代码
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
Uri uri = Uri.parse(Environment.getDownloadCacheDirectory().getPath().toString());
intent.setDataAndType(uri,"*/*");
intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
intent.addCategory(Intent.CATEGORY_OPENABLE);
try {
startActivityForResult(Intent.createChooser(intent, "SELECT FILE"), commonUtilities.FILE_REQUEST_CODE);
} catch (ActivityNotFoundException e) {
}
Run Code Online (Sandbox Code Playgroud)
谷歌驱动器选项仍然存在。我只是不想显示谷歌驱动器选项。
我怎样才能得到它,帮帮我。感谢广告
| 归档时间: |
|
| 查看次数: |
1346 次 |
| 最近记录: |