Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Here you should submit your bug reports with logcat.

Blank pages on Android 3

More
IP: 192.168.0.70 13 years 4 months ago #798 by bastienleonard
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.
More
IP: 192.168.0.70 13 years 4 months ago #799 by radaee
Replied by radaee on topic Blank pages on Android 3
2 points need to be careful:
--invoke PDFView.viewResize() in View.onSizeChanged().
--invoke PDFView.viewDraw() in View.onDraw()
More
IP: 192.168.0.70 13 years 4 months ago - 13 years 4 months ago #800 by bastienleonard
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: 13 years 4 months ago by hamzaawwad.
More
IP: 192.168.0.70 13 years 4 months ago #807 by bastienleonard
Hello,

I found a workaround. For some reason, hardware acceleration had to be disabled on Android 3 in order to display the PDF.
Time to create page: 0.406 seconds
Powered by Kunena Forum