Cannot get DialogFragment to dismiss programmatically
I have a DialogFragment that shows a list of items to pick from (similar to the attach dialog in Messaging). My problem is that I cannot get this dialog to dismiss when an item is selected. I've tried calling dismiss() and getDialog().dismiss() inside the OnItemClickListener , no luck. I've tried to remove the dialog through the FragmentManager, I've tried fragmentManager.popBackStack() , all to no avail. I cannot get this dialog to dismiss. It goes away fine when clicking outside the dialog or hitting the back button, but nothing in my code will make it go away. Has anyone seen this before?