Why does the AlertDialog crash on show()?

view story

http://stackoverflow.com – I'm new to AlertDialogs and cannot get it to work with Cursors. The code below is in my onCreate() function and I know the Cursor has rows in it. Am I missing part of the creation code? AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this); // set title alertDialogBuilder.setTitle("Choose a playlist"); // set dialog message alertDialogBuilder.setCancelable(false); // Add cursor items alertDialogBuilder.setCursor(cursor, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int pos) { Toast.makeText(getApplicationContext(), "Clicked (HowTos)