radio group not listening inside of a dialog in android -


i can't listen radiogroup dialogfragment class. don't eny errors, log doesn't show me anything. please me...

public class simpledialog extends dialogfragment{  @override public dialog oncreatedialog(bundle savedinstancestate) {      alertdialog.builder builder = new alertdialog.builder(getactivity());       layoutinflater inflater = getactivity().getlayoutinflater();     view view = inflater.inflate(r.layout.radio, null);      builder.settitle(r.string.dialog_name)             .setview(inflater.inflate(r.layout.radio, null))             .setnegativebutton(r.string.cancel, new dialoginterface.onclicklistener() {                public void onclick(dialoginterface dialog, int id) {                }            });       radiogroup radiogroup = (radiogroup) view.findviewbyid(r.id.radiogroup);     radiogroup.setoncheckedchangelistener(new oncheckedchangelistener()      {         public void oncheckedchanged(radiogroup group, int checkedid) {              log.v("dialog", "checked");         }     });      return builder.create(); } 

}

i figured out, have pass builder.setview(view)


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -