SyntaxFix
Write A Post
Hire A Developer
Questions
You should use ContextWrapper like this:
ContextWrapper cw = new ContextWrapper(context); File directory = cw.getDir("media", Context.MODE_PRIVATE);
As always, refer to documentation, ContextWrapper has a lot to offer.