alex alex - 1 month ago 13
Android Question

issue to select a PDF file from my mobile

i need to choose a pdf file on my mobile and upload the pdf file on a server, but i get this:"

no application can perform this action
"..why?

this is my code when i click on "select pdf file":

private void showFileChooser() {
Intent intent = new Intent();
intent.setType("application/pdf");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent, "Select Pdf"), PICK_PDF_REQUEST);
}

Answer

You need to install some file explorers on your device first.

Comments