SyntaxFix
Write A Post
Hire A Developer
Questions
You can define:
Context ctx;
And on onCreate initialise ctx to:
onCreate
ctx
ctx=parent.getContext();
Note: Parent is a ViewGroup.