Discussions about creating CAPI applications to run on Android devices
jalsola
Posts: 6 Joined: February 3rd, 2021, 4:56 pm
Location: Panamá
Post
by jalsola » 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:
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"
jalsola
Posts: 6 Joined: February 3rd, 2021, 4:56 pm
Location: Panamá
Post
by jalsola » February 4th, 2021, 10:44 am
Thank you very much for your prompt response, your repo has worked for me.