7

Getting Exception while showing items in AlertDialog in Android

view full story
linux-howto

http://stackoverflow.com – I am trying to create an AlertDialog with a choice of items. I am using the following code final CharSequence[] items={"One","two","three"}; alertDialog = new AlertDialog.Builder(this).create(); alertDialog.setTitle("Choose COlor"); alertDialog.setItems(items, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // The 'which' argument contains the index position // of the selected item } }); But I k (HowTos)