0

hi all i used below code for getting sdcard files but it shows no application perform this action. how can dynamically get the sdcard directory files to read files and write files without using android widget help me to avoid the problem

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(path, "application/pdf");
startActivity(Intent.createChooser(intent, "Open PDF"));

1 Answer 1

1

You are getting no application perform this action because any of the installed applications can not perform that action.

Seems that you are running this on an emulator, which does not include a pdf reader.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.