Android SimpleCursorAdapter results not displaying in AlertDialog
I was looking for an alternative to a spinner, since the first item is always selected (which causes me issues), and I found some examples for using an AlertDialog with a list instead. I am having two problems: The list is displaying and is formatted ok, but there are no values in it. I know the query is returning, and the cursor/adapter has the data in it. This may be a symptom of #1 - but when I select a blank row, the Cursor cursor2 = (Cursor) ((AdapterView) dialog).getItemAtPosition(which); statement causes a crash (it's a ClassCastException). I had similar code previously which set the