- Posts: 1123
- Thank you received: 73
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
IP: 192.168.0.71
12 years 1 month ago - 12 years 1 month ago #6739
by radaee
Replied by radaee on topic Android PDF lib not working on some tablets
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: 12 years 1 month ago by .
IP: 192.168.0.71
12 years 1 month ago #6740
by radaee
Replied by radaee on topic Android PDF lib not working on some tablets
and SDK can only works under ARGB_8888 Bitmap object.
maybe the Bitmap object is not ARGB_8888, even you pass Config.ARGB_8888.
maybe the Bitmap object is not ARGB_8888, even you pass Config.ARGB_8888.
- ffvanderlaan2
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
IP: 192.168.0.71
12 years 1 month ago - 12 years 1 month ago #6741
by ffvanderlaan2
Replied by ffvanderlaan2 on topic Android PDF lib not working on some tablets
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
You might be right, but how can I check this? targetBitmap.getConfig() prints ARGB_8888. The device has Android 4.2.2
Last edit: 12 years 1 month ago by Rignanese.
IP: 192.168.0.71
12 years 1 month ago - 12 years 1 month ago #6742
by radaee
Replied by radaee on topic Android PDF lib not working on some tablets
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...
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: 12 years 1 month ago by .
- ffvanderlaan2
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
IP: 192.168.0.71
12 years 1 month ago #6743
by ffvanderlaan2
Replied by ffvanderlaan2 on topic Android PDF lib not working on some tablets
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
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
IP: 192.168.0.71
12 years 1 month ago #6744
by radaee
Replied by radaee on topic Android PDF lib not working on some tablets
OK, i'll modify codes, and test it again.
Time to create page: 0.432 seconds