How do I access a pdf file stored in R.raw on android SDK?

Asked

Viewed 31 times

1

I think some information is missing to make the pdf file appear in my app. I used the following line of code within the Oncreate method:

        PDFView novo = (PDFView)findViewById(R.id.pdfView);
        novo.fromAsset("arquivo");

But still, the PDF does not appear, when I put to run the app. What is missing? I think this string has to be referenced somewhere isn’t it? How do I do that?

  • What class is this Pdfview? Link to your documentation.

  • is git: https://github.com/barteksc/AndroidPdfViewer

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.