【发布时间】:2016-03-29 17:55:46
【问题描述】:
我已经这样做了:
doInBackground(String... prams){
Toast.makeText(getApplicationContext(),
"Server too busy. Please try after sometime.",
Toast.LENGTH_LONG).show();}
出现错误。请帮忙。
【问题讨论】:
-
你遇到了什么错误?
-
你遇到了什么错误?
-
这 - 12-23 15:45:30.548: W/System.err(3596): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
-
在 onPostExecute() 中添加该行
-
出现错误时代码崩溃,onPostExecute() 未调用。