facebook

pdf file not opening in android

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #332485 Reply

    Rajesh
    Member

    Hi,
    I develop the pdf file reading app in mobione.This app not working .In the android device and the emulator i can’t open the pdf file .

    pls help me..

    #332544

    Tulsaboy
    Member

    I am no expert, but I think this is because that Android does not support reading pdf files in an app. They have separate apps that will read pdf files though.

    This is also a problem for me that I am looking for a solution for. Is it possible to convert pdf files to another format that Android will read?

    Thanks for any help!

    #332614

    Hi Tulsaboy,

    Is your app a native app or webapp? Have you considered use the pop up window to show your pdf files?

    #332615

    Tulsaboy
    Member

    A native app. I have two Android devices, and have not been able to get either of them to read a pdf file in an app, whether it was using the current window or a pop-up window.

    Thanks.

    #332619

    @Tulsaboy,

    Could you share us your project to take a look and search the problem that you can’t open your pdf file in popup window?

    #332630

    Tulsaboy
    Member

    How would I do that, to share the project with you?

    #332640

    you can send it via support at genuitec dot com, using title mobione data from Tulsaboy or attach it to this thread.

    #333136

    Tulsaboy
    Member

    I hate to be a pest. I am sure you are working as fast as you can. Is there any information you could share about the progress or expectations on getting Android devices to read pdf files?

    Thanks!

    #333156

    support-michael
    Keymaster

    Please see this ANN of the new 2.3 Milestone-1 that includes this fix. Please try out the PDF viewing in a test app or back up your main project. We are interested in your results.

    #333269

    Tulsaboy
    Member

    Still does not display any pdf file in any of my Android devices, either from viewing a web page and touching a pdf link, or within the program, by selecting go to URL and embedding the pdf file within the application.

    However, the software update did make my mp3 audio files quit working in my Samsung Galaxy S and S2 phones, although they still worked in my Asus Epad tablet.

    Thanks.

    #333301

    support-michael
    Keymaster

    @Tulsaboy

    > Still does not display any pdf file in any of my Android devices, either from viewing a web page and touching a pdf link, or within the program, by selecting go to URL and embedding the pdf file within the application.

    Thanks for this feedback. I reviewed the project data you recently shared with us. I was looking for the pdf file (book-medicine-plainfront.pdf) that will not load.
    1) Are you able to open this pdf file on your device directly?
    2) if yes, can you share this file with us?

    Also I would appreciate your assistance in testing this simple PDF test android app. Download here: http://goo.gl/A8m8f
    The 2 buttons load a file remotely and locally. Also you can enter a url to your own pdf. The http pdf may take a few seconds to load over the network.
    See attachment pdf-test-android.png

    Attachments:
    You must be logged in to view attached files.
    #333308

    Tulsaboy
    Member

    Thank you very much for your attention to this matter! My testing was very strange. Loaded your test app on two Android devices, a phone and a tablet. Your pdf buttons worked fine to load the pdf files you had in the program. But they gave this message when I tried to use the test to load three of my own pdf files: “The document cannot be opened because it is not a valid PDF file.” Two of those files were generated by Adobe software and the third was generated by MS Word 2007. Then I loaded the files directly into the two devices. To do that I had to restart the Asus tablet to read the sd card. Both devices could read all three files stored internally using Adobe Reader.

    So then I re-tried your pdf tester app on both devices, going through all the same files again, and your app read them all this time around using http from a web site!

    However, my app is still not reading my pdf file from within my program. Obviously, it is some fault of my own, but I don’t know what. I am sending my pdf file to you by email, as you requested.

    Thank you very much!!!

    #333309

    Tulsaboy
    Member

    I tried opening my pdf file using Go to URL with a valid http:// address that I pasted in from a working web page so I know it was spelled correctly. I used a popup window with full controls so I could see what was happening. It did nothing but display a white screen. It did show the correct URL at the top of the page.

    When I used the same file but embedded it into the program, the same thing — just a white screen. But the file was this:
    file:///android_asset/www/book-medicine-plainfront.pdf

    I would like to know how in your test app you got the pdf files to display!

    Thanks!

    #333574

    @Tulsaboy,

    Please try the next steps for create a basic test:

    1) Include your pdf(s) file as Additional Project File.
    2) Insert a button and set the onclick actions as:
    Go to URL:
    URL: nameofPDF.pdf
    Open URL in: Popup Window
    3) Build your Android App
    Note: be sure to include your pdf file in the build wizard

    #333602

    Tulsaboy
    Member

    Very good job! Thank you for making this work. These were the same steps I took before, but now it works to view the pdf file in my Android devices directly.

    It still does not view a pdf file from browsing a web page, though. What I mean is if I go to a web page within my app, and that page has a link that is a pdf file, when that link is touched, nothing happens. But it does display the pdf file that is included in my app build, and for that I am very grateful.

    Also, the problems I had with milestone 1 have disappeared (audio and centering).

    I appreciate all your work and making this work! Thank you so much!

Viewing 15 posts - 1 through 15 (of 16 total)
Reply To: pdf file not opening in android

You must be logged in to post in the forum log in