eclipse - android - Scala OnClickListener AlertDialog -
i create alertdialog android in scala ide plugin eclips, want change activity after clicking on no button couldn't change it, don't have error!! would please give me hints, if wrote wrong thanks in advance! first android app in scala new alertdialog.builder(this) .settitle("exit camera") .setmessage("do want try again?") .setpositivebutton("no", new view.onclicklistener { println("nooooo print") def onclick(dialog: view) { println("no print"); val intent = new intent(claimbookactivity.this, classof[homeactivity]); startactivity(intent); println("no class"); } }) .setnegativebutton("yes", new view.onclicklistener { println("yes print"