Java Lang Runtimeexception Cant Create Handler Inside Thread That

[Solved] Java Lang Runtimeexception Cant Create Handler Inside Thread That | Typescript - Code Explorer | yomemimo.com
Question : java.lang.runtimeexception: can't create handler inside thread that has not called looper.prepare()

Answered by : handsomeoldgod5355

activity.runOnUiThread(new Runnable() { public void run() { Toast.makeText(activity, "Hello", Toast.LENGTH_SHORT).show(); }
});

Source : | Last Update : Fri, 20 May 22

Answers related to java lang runtimeexception cant create handler inside thread that has not called looper prepare

Code Explorer Popular Question For Typescript