SyntaxFix
Write A Post
Hire A Developer
Questions
Following has worked for me:
myDialog.setCanceledOnTouchOutside(true);