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