[android-developers] Drawing rapidly into Bitmap from non-UI thread results in Cannot generate texture from bitmap

2013-11-06 Thread Andrew Mackenzie
You should be able to write to the Bitmap object from any thread. It us setting that Bitmap into a View in the ViewHierarchy that is restricted to the UIThread. So your thread will have to pass the resulting Bitmap back to the UIThread and set it into a View there. If you are not using an

[android-developers] Drawing rapidly into Bitmap from non-UI thread results in Cannot generate texture from bitmap

2013-11-05 Thread Michael Zoech
Hi, In my current application that I'm developing I draw into an android.graphics.Bitmap object from a non-UI thread. This is done from native code via the AndroidBitmap_lockPixels and AndroidBitmap_unlockPixels calls. Every time the drawing has finished, the UI thread gets notified that the