Search code examples
androidandroid-layouthardware-acceleration

Get view's Bitmap when Hardware acceleration is on


I have a question about the hardware acceleration in Android 4.0 I want to get a view's bitmap. It's working if the hardware acceleration is disabled but when it is enabled nothing is displayed on the screen. I use this code to capture the view's bitmap.

item.setDrawingCacheEnabled(true);
Bitmap bitmap = item.getDrawingCache();

Does anybody have any idea why this is not working with hardware acceleration enabled?


Solution

  • It's a problem in the Android Rendering System: VideoView getDrawingCache is returning black - won't be fixed soonish.