In that code I still see the error View layout = inflater.inflate(R.id.dialog, null); You have to inflate theh view with the layout file. What you are doing now is inflating a view with the id of the dialog, and that doesn't make sense.
–
IxxJun 23 '12 at 22:07