[android-developers] blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread swapnil kamble
Hi , I am displaying Confirmation type dialog box. I want to pause execution of that thread until answer is provided by user, but since this AlertDialog works asynchronously, I am facing problems in blocking that thread but displaying AlertDialog and continue execution on answer. I tried

Re: [android-developers] blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread Frank Weiss
I assume you want a modal dialog. I'm pretty sure blocking the UI thread is going about this wrong. For example, consider the Activity lifecycle callbacks which would be called when another Activity or Application becomes visible. Here's an explanation I found by googling for android modal

Re: [android-developers] blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread TreKing
Um ... why don't you just put the code you want to execute in the onClick handlers for the Yes and No options, respectively? That's pretty much the point of having them ... - TreKing - Chicago transit