Android 从存储器中选择pdf文件

Android 从存储器中选择pdf文件,android,android-intent,Android,Android Intent,我想打开手机存储器模拟/Storage/0/,只过滤pdf文件,以便用户选择。 我尝试了这段代码,但在fileChoser中,我只能使用tierce应用程序打开它,如DropBox或GoogleDrive。如何使用android浏览器打开它 编辑:我在4.2和6.0上都试过了,我在filechooser中唯一的选择仍然是Drive和Dropbox我仍然只能打开驱动器和Dropbox,无法打开Android File explorer这是否允许从File explorer中选择pdf?我无法打开F

我想打开手机存储器
模拟/Storage/0/
,只过滤pdf文件,以便用户选择。
我尝试了这段代码,但在fileChoser中,我只能使用tierce应用程序打开它,如
DropBox
GoogleDrive
。如何使用android浏览器打开它


编辑:我在4.2和6.0上都试过了,我在filechooser中唯一的选择仍然是
Drive
Dropbox

我仍然只能打开驱动器和Dropbox,无法打开Android File explorer这是否允许从File explorer中选择pdf?我无法打开File explorer可能是因为您的File explorer不接受此意图。你试过其他设备吗?你在用galaxy s5吗?
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("application/pdf");
startActivityForResult(intent, SAVE_REQUEST_CODE);
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("application/pdf");
startActivityForResult(intent, SAVE_REQUEST_CODE);