SyntaxFix
Write A Post
Hire A Developer
Questions
If you are using a fragment and using an AlertDialog / Toast message, use getActivity() in the context parameter.
AlertDialog / Toast
getActivity()
Worked for me.
Cheers!