1

i am very new to android development..........i have searched the stack overflow archives but nothing seem to work for me.... i just need an application to read PDFs files in android on button click.... -just PDFs read (no writing or converting or anything)

please if someone can guide me in the right direction and which library to get....... used itext but its not working.......application crashing on

Document document = new Document();

any help would be appreciated.....thank you

Saqibdb
  • 73
  • 1
  • 8

2 Answers2

0

you can read pdf files using WebView like

mWebView.loadUrl("https://docs.google.com/gview?embedded=true&url="+ webUrl);
Ronak Mehta
  • 5,971
  • 5
  • 42
  • 69
0

You must use an implicit intent, put the PDF file path in an URL and launch it with the intent with ACTION_VIEW, it will launch with the default PDF application.

Romain R
  • 41
  • 4