Access pdf file

Help
Thom
2012-07-19
2013-04-29
  • Thom
    Thom
    2012-07-19

    Hi,

    I'm using your library but I cannot access the pdf file. Actually I don't know what to put as a pdf file path input.

    I tried to copy the PDF file on my device SD card and call
    String SD_CARD_PATH = Environment.getExternalStorageDirectory().getAbsolutePath().toString(); intent.putExtra(PdfViewerActivity.EXTRA_PDFFILENAME, SD_CARD_PATH + "/test.pdf");

    but still I get the "ST='file '/mnt/sdcard/test.pdf' not found'" error.

    I also tried with the following paths
    "/mnt/sdcard/sd"
    "/mnt/sdcard/external_sd"
    "/sdcard/external_sd"
    "/sdcard/sd"
    "/mnt/sdcard/"

    but still the same error.

    Any clue?

     
  • Thom
    Thom
    2012-07-19

    So it seems that

    /mnt/extSdCard/test.pdf
    

    works while

    Environment.getExternalStorageDirectory().toString() + "/test.pdf"
    

    doesn't. Why???