Page 1 of 1

Open .pff

Posted: February 3rd, 2021, 5:01 pm
by jalsola
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:

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);
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"

Re: Open .pff

Posted: February 4th, 2021, 7:28 am
by josh
Try launching CSEntry using the package name. Here is an example: https://github.com/CSProDevelopment/CSE ... ivity.java

Re: Open .pff

Posted: February 4th, 2021, 10:44 am
by jalsola
Thank you very much for your prompt response, your repo has worked for me. :D