【发布时间】:2011-11-05 02:15:51
【问题描述】:
我想在 SurfaceView 类中使用 Toast 创建一条消息。使用此代码,我有以下异常...
Toast toast = Toast.makeText(this.getContext(), "Message", Toast.LENGTH_LONG);
toast.show();
11-05 02:06:08.070: ERROR/AndroidRuntime(265): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
如何在 SurfaceView 中敬酒??
【问题讨论】:
标签: java android surfaceview toast