I get the following Android exception when I try to open a dialog. Can someone please help me understand what is going on and how can I fix this problem?
and
Try getParent() at the argument place of context like new AlertDialog.Builder(getParent()); Hope it will work, it worked for me.
getParent()
context
new AlertDialog.Builder(getParent());