On Thu, Feb 11, 2010 at 3:49 AM, guich <[email protected]> wrote:

> I also found that calling the alert from the VM works fine. However,
> calling from the SurfaceView will freeze the application. So, i
> changed the method to wait a few seconds and then quit if its being
> called from a View.
>

Um.  You should probably sit down and understand the threading going on in
your program, and have it to the correct things based on that, rather that
using timeouts (with a few seconds!) to work around bugs in it.

If you are saying that "calling from the SurfaceView" means you are trying
to do your block dialog hack from a callback on SurfaceView, then yes this
will deadlock, because you are doing this on the main thread, because all of
these callbacks are defined to happen on the thread running the containing
window, which for normal windows is the main thread.

So just don't do that.

-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to