Android Alert Dialogs -


i have class:

public class fh_topodialog extends dialogfragment{      @override     public dialog oncreatedialog(bundle savedinstancestate) {          alertdialog.builder builder = new alertdialog.builder(getactivity());         layoutinflater inflater = getactivity().getlayoutinflater();          /* options */         this.setcancelable(false);          builder.seticon(r.drawable.logonofill);         builder.settitle("topo contour");          final charsequence[] items= {"stuff"};          builder.setmultichoiceitems(items, null, new dialoginterface.onmultichoiceclicklistener() {              @override             public void onclick(dialoginterface dialog, int which, boolean ischecked) {              }          });          builder.setpositivebutton("done", new dialoginterface.onclicklistener() {             public void onclick(dialoginterface dialog, int id) {                 dialog.dismiss();             }         });          builder.setnegativebutton("cancel", new dialoginterface.onclicklistener() {             public void onclick(dialoginterface dialog, int id) {                 dialog.dismiss();             }         });           return builder.create();     }   } 

i call main actiivty create a dialog window in can user input use input in application. how heck pass data , forth?? ideally want send own data structure class, have changed , sent back.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -