可能重複: RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 我有在Android中使用Java序列化機制的問題。它運作良好,從UI線程調用時,但是當我試圖從一些後臺線程使用它我得到: java.lang.RuntimeException: Can't create h
讓我們假設我有這段代碼。 foreach(string value in myList)
{
string result = TimeConsumingTask(value);
//update UI
listBox.Add(result);
}
我想將string result = TimeConsumingTask(value);移動