Wednesday, November 6, 2013

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

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 AsyncTask already then look at using Handler to do that.

Sounds like you error is just with the Bitmap call directly. Share that code.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate