the complier underlines the getListView() section and gives the error "the method getListView() is undefined for the type AlertDialog"
On Sep 27, 8:26 pm, Mark Murphy <[email protected]> wrote: > Boozel wrote: > > can someone tell me what code i'd use to get what checkboxes are > > checked when i press the ok button for the code below. > > Any help would be great. > > Thanks. > > > inal CharSequence[] tags = {"first", "2nd", "third"}; > > boolean[] f=new boolean[tags.length]; > > AlertDialog.Builder builder = new AlertDialog.Builder(this); > > builder.setTitle("Filter"); > > builder.setMultiChoiceItems(tags, f, null); > > builder.setPositiveButton(android.R.string.ok, new > > DialogInterface.OnClickListener() { > > public void onClick(DialogInterface dialog, int > > whichButton) { > > > //??????????????????? > > > } > > }); > > builder.create(); > > builder.show(); > > Try: > > ((AlertDialog)dialog).getListView().getCheckedItemPositions() > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Looking for Android opportunities?http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

