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
Using this did not work for me, but MyActivityName.this did. Hope this helps anyone who could not get this to work.
this
MyActivityName.this