RadaeePDF.com :: Topic: Blank pages on Android 3 (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Here you should submit your bug reports with logcat.

TOPIC: Blank pages on Android 3

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

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.
The administrator has disabled public write access.

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

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
2 points need to be careful:
--invoke PDFView.viewResize() in View.onSizeChanged().
--invoke PDFView.viewDraw() in View.onDraw()
The administrator has disabled public write access.

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

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).
Last Edit: 4 years 11 months ago by hamzaawwad.
The administrator has disabled public write access.

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

Hello,

I found a workaround. For some reason, hardware acceleration had to be disabled on Android 3 in order to display the PDF.
The administrator has disabled public write access.
Powered by Kunena Forum