Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Here you should submit your bug reports with logcat.
  • Page:
  • 1

TOPIC:

Blank pages on Android 3 11 years 5 months ago #798

  • bastienleonard
  • bastienleonard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hello,

I am writing a builtin PDF viewer for an app. It works fine on Android 4, but only shows blank pages on a 3.2.1 tablet. The same PDF works fine when running the example, or a project with a single activity copy-pasted from the examples.

So I tried to directy copy-paste the example to my buggy app and try that; same problem. I'm thinking that the problem is related to themes, and possibly with Action bar sherlock which we're also using. But I couldn't reproduce the problem in the sample project I created.

Do you have any idea of what could trigger this problem? Thanks in advance.

Please Log in or Create an account to join the conversation.

Blank pages on Android 3 11 years 5 months ago #799

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
2 points need to be careful:
--invoke PDFView.viewResize() in View.onSizeChanged().
--invoke PDFView.viewDraw() in View.onDraw()

Please Log in or Create an account to join the conversation.

Blank pages on Android 3 11 years 5 months ago #800

  • bastienleonard
  • bastienleonard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Thanks for your reply. I'm using the ReaderAct example, which uses a PDFReader object. That class handles onSizeChanged() and onDraw() correctly it seems.

I should also say that it doesn't seem to be a font problem, since the PDFs have many images, and the thumbnails work fine (generally speaking, everything works fine *except* the PDF display itself).

Please Log in or Create an account to join the conversation.

Last edit: by hamzaawwad.

Blank pages on Android 3 11 years 5 months ago #807

  • bastienleonard
  • bastienleonard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hello,

I found a workaround. For some reason, hardware acceleration had to be disabled on Android 3 in order to display the PDF.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum