I have this method in a class (normal class not activity)
public String getTitle(Context context) {
Log.d(TAG, Locale.getDefault().toString() + ", " + context.getString(R.string.title));
return context.getString(R.string.title);
}
When I call this method from activity passing context (getApplicationContext()) the log prints (ar, Categories)
I double checked strings in xml and there are english and arabic word
so how come? locale is arabic and it returns english resource.