If any row item of list contains focusable or clickable view then your click listener might not work properly
you must put this line in your custom listviews row_item.xml file
i.e. android:descendantFocusability="blocksDescendants"
For eg:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:descendantFocusability="blocksDescendants"
//other layout info here .....
>
</LinearLayout>
i think what you need to do is before showing your Dialog
alertD = alertDialog.create();
and show
alertD.show();
check here for example http://www.mkyong.com/android/android-alert-dialog-example/