never mind that one. it seems to work if I put loop() at the end of the
logic.

I have another related problem now. I want to show two alerts, one after the
other, as the logic advances. But I can not get rid of the first alert.
Calling cancel() or dismiss() or both does not work. How can I loose an
alert programatically ?

regards,
   Raul



On Tue, Apr 1, 2008 at 4:07 PM, Raul Bocter <[EMAIL PROTECTED]> wrote:

>   Hello,
>
>
> I am trying to show alerts while doing some logic in the background. I
> want to do this in a new thread (not the UI thread). I don't understand how
> this should work. As I try to show the alert it throws an exception saying i
> have to call Looper.prepare() first. Ok, I call prepare(). The alert does
> not show until Looper.loop()gets called. But after loop(), the thread is
> stuck there. It will not go further. What would be a solution for this?
>
> regards,
>    Raul
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to