Я использую Intent для открытия файлового менеджера, мне нужно знать, как отображать только файлы .doc, .docx на выбор пользователей. Как поставить setType в намерение? `Следующая функция используется для выбора файла из файлового менеджера.
private void showFileChooser() {
Intent intent = new Intent();
//sets the select file to all types of files
intent.setType("application/*");
//allows to select data and return it
intent.setAction(Intent.ACTION_GET_CONTENT);
//starts new activity to select file and return data
startActivityForResult(Intent.createChooser(intent, "Choose File to Upload.."), PICK_FILE_REQUEST);
}`