里面的Andr​​oid AsyncTask的警报对话框

问题描述:

我需要显示 Alertdialog 的AsyncTask 在Android中,但它那倒显示抛出异常。

I need to show the Alertdialog inside Asynctaskin android , but it won`t show in throws exception.

05-13 14:59:35.522: WARN/System.err(1179): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

感谢。

这是不可能操纵从后台线程的用户界面。使用上的的AsyncTask的pre /后处理的方法或。

It isn't possible to manipulate the UI from the background thread. Use handler or the onPre/Post methods of the AsyncTask for that.