Cocos2dxActivity でカスタム android ダイアログ (カスタム レイアウト) を表示するにはどうすればよいですか? ダイアログを作成し、そのレイアウトを設定して表示するJNIを介してメソッドを呼び出してみました。
public void displayDialog()
{
Dialog d=new Dialog(this);
d.setContectView(R.layout.myDialog);
d.show();
}
それは私にこのエラーを与えます
08-21 14:34:08.045: E/AndroidRuntime(2675): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()