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.

Android PDF lib not working on some tablets

More
IP: 192.168.0.71 11 years 9 months ago - 11 years 9 months ago #6739 by radaee
try these codes add to activity which PDF pages displayed:
Code:
@Override public void onAttachedToWindow() { super.onAttachedToWindow(); getWindow().setFormat(PixelFormat.RGBA_8888); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); WindowManager.LayoutParams lp = new WindowManager.LayoutParams(); lp.copyFrom(getWindow().getAttributes()); lp.format = PixelFormat.RGBA_8888; getWindow().setAttributes(lp); Global.Init( this ); ... }
Last edit: 11 years 9 months ago by .
More
IP: 192.168.0.71 11 years 9 months ago #6740 by radaee
and SDK can only works under ARGB_8888 Bitmap object.
maybe the Bitmap object is not ARGB_8888, even you pass Config.ARGB_8888.
More
IP: 192.168.0.71 11 years 9 months ago - 11 years 9 months ago #6741 by ffvanderlaan2
I added your code, did not help.
You might be right, but how can I check this? targetBitmap.getConfig() prints ARGB_8888. The device has Android 4.2.2
Last edit: 11 years 9 months ago by Rignanese.
More
IP: 192.168.0.71 11 years 9 months ago - 11 years 9 months ago #6742 by radaee
plz test temporary library as link:
www.radaee.com/libs.rar
this library shall print logs like:
"JNI" "Need ANDROID_BITMAP_FORMAT_RGBA_8888, Bitmap Fotmat:ANDROID_BITMAP_FORMAT_RGB_565"


i'm waiting...
Last edit: 11 years 9 months ago by .
More
IP: 192.168.0.71 11 years 9 months ago #6743 by ffvanderlaan2
Hi,

I already removed your code again, without it it prints:

D/JNI(7312): Need ANDROID_BITMAP_FORMAT_RGBA_8888, Bitmap Fotmat:ANDROID_BITMAP_FORMAT_NONE
More
IP: 192.168.0.71 11 years 9 months ago #6744 by radaee
OK, i'll modify codes, and test it again.
Time to create page: 0.459 seconds
Powered by Kunena Forum