android using AlertDialog instead of custom Dialog
working example