Error in displaying data with TextView.setText: Resources$NotFoundException: String resource ID #0x0

I am getting this exception: android.content.res.Resources$NotFoundException: String resource ID #0x0 The exception stack trace points to this line in the adapter class: holder.no_of_sems.setText(…

How can I get a resource content from a static context?

I want to read strings from an xml file before I do much of anything else like setText on widgets, so how can I do that without an activity object to call getResources() on?