Android Question Show pdf in app

Blue.Sky

Active Member
Licensed User
Longtime User
Hi
I like to show pdf in my app without any problem :(:(:(
I use b4apdfviewer but this library have a many problem
example i cannot rotate device,because app force close when try to show pdf
or sometime when i try load pdf,app force closed.
Thank you guys i know that you help me:cool:
 

Harris

Expert
Licensed User
Longtime User
My app asks which (intent) I wish to use to render a PDF.
All of them work...
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
How do you render pdf?
Can you help me?
B4X:
Dim i As Intent 'Requires a reference to the Phone library
        i.Initialize(i.ACTION_VIEW, ("file:///" & File.DirDefaultExternal &"/somefile.pdf"))
       
        i.SetType("application/pdf")
        i.WrapAsIntentChooser("Choose PDF Viewer")
        StartActivity(i)
A pdf viewer (or many) must be installed on your device.
 
Upvote 0

Blue.Sky

Active Member
Licensed User
Longtime User
B4X:
Dim i As Intent 'Requires a reference to the Phone library
        i.Initialize(i.ACTION_VIEW, ("file:///" & File.DirDefaultExternal &"/somefile.pdf"))
      
        i.SetType("application/pdf")
        i.WrapAsIntentChooser("Choose PDF Viewer")
        StartActivity(i)
A pdf viewer (or many) must be installed on your device.
Thanks but i cannot use intent,Please offer other way
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
search for pdfRenderer or PDF-View libs for B4A.
I have never used them...

(look at Similar Threads at top of this post for links...)
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
Hi
I like to show pdf in my app without any problem :(:(:(
I use b4apdfviewer but this library have a many problem
example i cannot rotate device,because app force close when try to show pdf
or sometime when i try load pdf,app force closed.
Thank you guys i know that you help me:cool:

Blue.Sky, I have same problem. Did you find a solution?
 
Upvote 0

Similar Threads

Top