Re: [android-developers] View not attached to window manager

2010-11-23 Thread TreKing
On Sat, Nov 20, 2010 at 7:05 AM, PaulJ wrote: > Problem occurs when a dialog progress appears and I change my phone > orientation, it freezes and crashes, on line with dismiss(). > For starters, if you use showDialog(), use dismissDialog() instead of calling dismiss on the dialog directly.

[android-developers] View not attached to window manager

2010-11-22 Thread PaulJ
Hello, I'd like to ask about how to proper handle progressDialog in Thread, since getting the error from subject. My code: Thread logThread = new Thread() { String result = new String(); @Override public void run() { Looper.prepare(); try { result = ofsomesomeoperation(); } catch (NoSuchAlgori