Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("/");
intent.addCategory(Intent.CATEGORY_OPENABLE);
Intent chooser = Intent.createChooser(intent, "请选择要代开的文件");
startActivityForResult(chooser, 1000);
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("/");
intent.addCategory(Intent.CATEGORY_OPENABLE);
Intent chooser = Intent.createChooser(intent, "请选择要代开的文件");
startActivityForResult(chooser, 1000);
本文标题:打开文件管理器选择文件
本文链接:https://www.haomeiwen.com/subject/vicdxqtx.html
网友评论