Open .pff
Posted: February 3rd, 2021, 5:01 pm
Greetings to all, I have an application developed in Android Studio and I am using the CsPro application on my phone. The point is that I create the .pff file by code with all the specifications and I use the following code:
my problem is that when I execute it I get a pop-up message with the following message "There are no applications that can perform this action"
Code: Select all
File pffFile = new File(pffPath);
Intent intent = new Intent(Intent.ACTION_VIEW);
Uri pffURI = FileProvider.getUriForFile(requireActivity(),
requireActivity().getPackageName() + ".provider", pffFile);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.setDataAndType(pffURI, null);
startActivity(intent);