My Activity is trying to create an AlertDialog which requires a Context as a parameter. This works as expected if I use:
AlertDialog.Builder builder = new Al
Try getParent() at the argument place of context like new AlertDialog.Builder(getParent()); Hope it will work, it worked for me.
getParent()
AlertDialog.Builder(getParent());