Android Question How to open a PDF with Intent inside a panel?

Alex_197

Well-Known Member
Licensed User
Longtime User
Hi all.

I have a question.


I need to select a PDF on the user's phone (user will select this file), then open it and show the content to the user. If the user selected the correct file, I want him to confirm it by clicking a button below to save the file name in the local database.

I'm using FileProvider and Content resolver to show a list of folders and files - this is done already. My problem is how to open a PDF with the Intent. The problem is that the Intent starts on top of the Activity. But I need to open it inside activity so I can put a button below.

My question is- is it possible to open Intent inside a panel? In iOS I can use Webview to open a PDF but in Android Webview does not support it.

Thank you.
 

MarcoRome

Expert
Licensed User
Longtime User
 
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
when I try to open this project it shows this message
 

Attachments

  • screen.png
    3.7 KB · Views: 127
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
>when I try to open this project it shows this message

not here


It is not installed because there is no device connected. But the example can be compiled FINE here.
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
when I try to open this project it shows this message
i don´t know where b4apdfviewer is coming from. It is not part of PDFium library!?

Do you use

free-lib-b4apdfviewer-by-icefairy333???? this library is not related to PDFium

Looks like you are confusing different libraries and want to try an example from another library?

The example in PDFium-Thread linked above by @MarcoRome is working here.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…