[Android] 處理 Can't create handler inside thread that has not called Looper.prepare()
因為 UI 操作不能在其它 thread 做
直接用 activity 提供的 runOnUiThread 做掉
1 | runOnUiThread(new Runnable(){ public void run(){ |
因為 UI 操作不能在其它 thread 做
直接用 activity 提供的 runOnUiThread 做掉
1 | runOnUiThread(new Runnable(){ public void run(){ |