On Apr 9, 1:42 pm, Gibson <[EMAIL PROTECTED]> wrote:
> Hi Steve,
>
> Thanks for you advice. But i think there is no need to synchronize
> the bitmap. Because onCreate() method and onDraw() method won't strive
> for bitmap(I don't know whether you understand what i mean. English is
> not my mother language.) So I think there won't be two thread to deal
> with bitmap. Any Google guys can give me some advice? Thanks very much
> for any advice.
>
> BR
I understand you. I was thinking the onDraw could be called by two
different threads, even though there is only supposed to be one UI
thread (you probably aren't supposed to put that thread to sleep
either ;) ). It would only take a minute to test a synchronized block
on the bitmap where you call the get and set pixels - if that doesn't
change things then you know it is not a thread issue.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---