Forum Post: View PDF on an Android mobile app. Any ideas?

  • Thread starter Thread starter dhubbuck
  • Start date Start date
Status
Not open for further replies.
D

dhubbuck

Guest
Hi All, I have been playing around with the mobile app builder to test some of the features that we would use in a real world app. After successfully using the OERealm security features to authenticate against a user table within our OpenEdge database I moved on to create an app that would allow a user to view a PDF. The PDF in the sample was successfully transferred using a CLOB temp-table field. When I tested the app using a desktop browser the pdf displayed correctly using the following javascript window.open("data:application/pdf;base64," + escape(localStorage.getItem('loceDocData')),'_system'); Also opening a URL to a PDF file, using the navigate to link event, worked correctly when testing on the desktop browser. When an APK file is exported and installed on an android device the PDF does not display using any of the above methods. I have stumbled across a thread that recommends using the google docs viewer URL. Does anyone know any other ways to view a PDF? Is it possible to store the stream as a file and call adobe reader? Thanks in advance

Continue reading...
 
Status
Not open for further replies.
Back
Top