-3
我该如何给用户选择文件管理器中的文件?我想选择excel文件。从Android中的文件管理器打开文件?
我该如何给用户选择文件管理器中的文件?我想选择excel文件。从Android中的文件管理器打开文件?
尝试下面的代码,
private static final int PICKFILE_REQUEST_CODE=3;
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("file/*");
startActivityForResult(intent,PICKFILE_REQUEST_CODE);