Why can’t I use Resources.getSystem() without a Runtime error?

According to Android documentation, Resources.getSystem() only provides system-level resources, not application-level ones (like the resources inside your strings.xml file).

http://developer.android.com/reference/android/content/res/Resources.html#getSystem()

Try using the application’s context if you really want to retrieve your strings this way, or take my suggestion in the comment to your question.

Leave a Comment