File file = new File(filePath, fileType);
try (FileOutputStream fOut = new FileOutputStream(file)) {
fOut.write(Base64.decode(byteArrayvalue, 0));
fOut.flush();
fOut.close();
Common.openFile(fragmentName, file);
}
Uri uri = Uri.fromFile(file);
intent.setDataAndType(uri, "application/pdf");
fragment.getActivity().startActivity(intent);
I have a PDF file in my local storage in my mobile. I am trying to open it programatically in my app , but on launch it shows all the apps which can read pdf. But i want to show user only Adobe pdf reader. i don't want other apps to be displayed. I want to choose which app should open the file.Please help on this.