I have this code in the string.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hint_input_user_es">EMAIL:</string>
</resources>
And what I want is to get "EMAIL" and show it in a textView as Hint. I've tried it in several ways and it all gives me the same error.
TextView login_email = (TextView) findViewById(R.id.login_email);
1. login_email.setHint(getText(R.string.hint_input_user_es));
2. login_email.setHint(getResources().getString(R.string.hint_input_user_es));
3. login_email.setHint(getString(R.string.hint_input_user_es));
And in all cases I get this error:
android.content.res.Resources$NotFoundException: String resource ID #0x7f05002b
Thank you very much.