Android - java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

程式跑出了

java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

這是因為先使用了一個Thread 執行,進入非主線程之後

又在非主線程的Thread產生 new Handler().postDelayed 則就產生這樣的錯誤問題。