Open .pff

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
jalsola
Posts: 6
Joined: February 3rd, 2021, 4:56 pm
Location: Panamá

Open .pff

Post 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"
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Open .pff

Post by josh »

Try launching CSEntry using the package name. Here is an example: https://github.com/CSProDevelopment/CSE ... ivity.java
jalsola
Posts: 6
Joined: February 3rd, 2021, 4:56 pm
Location: Panamá

Re: Open .pff

Post by jalsola »

Thank you very much for your prompt response, your repo has worked for me. :D
Post Reply