SyntaxFix
Write A Post
Hire A Developer
Questions
Another alternative approach is:
You can get the context using:
getActivity().getApplicationContext();