SyntaxFix
Write A Post
Hire A Developer
Questions
You shouldn't be passing anything in to getCountry(). Remove Locale.getDefault():
getCountry()
Locale.getDefault()
String locale = context.getResources().getConfiguration().locale.getCountry();