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
Post a Comment