Use dialog builder instead of directly calling dialog

Directly calling a new dialog object is discouraged by Android official documentation.
Additionally by directly calling the dialog i have found some design problems on my Galaxy Note running Jelly Bean.
I have simply changed your code by building the dialog with DialogBuilder.

No other changes have been done.