*Situation: *I porting some Android codes from 2.2 to 4.0, and want to enable the HW acceleration(the Force GPU Rendering option) in this app. Then I found a lot of compatibility issues, like incorrect texture, color and drawing, also sometimes will get java.lang.UnsupportedOperationException then crash.
I try to fixed some of them following this mail( http://groups.google.com/group/android-developers/browse_thread/thread/303813cfe0985a63?pli=1), some parts were better but still not good. ** *Problem:* Recently I got a issue like this. The code try to use an API that was marked in "Unsupported Drawing Operations" list in SDK, on that View I try to set its attribute as "view.setLayerType(View.LAYER_TYPE_NONE, null);" , but after that the app runing with incorrect texture and crash with UnsupportedOperationException. Change to LAYER_TYPE_SOFTWARE then eveything is OK, but as we know using software to render into a bitmap and that will cost a lots of memory, more bitmap more memory, and that will be a big problem. I was wondering why using "LAYER_TYPE_NONE" still get incorrect texture?(If using LAYER_TYPE_HARDWARD will 100% with wrong drawing and crash). Is it "LAYER_TYPE_NONE" like a automation option? That means it will automate to choose one of the option between SOFTWARE and HARDWARE ? Thank you very much. Ken Lai -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en