Keeping external application configuration centralized in Android
===

(Android-Noob)

I can't find a best approach for encapsulating configuration resources.

Basically I'd like to keep configuration values like these:


<!-- language: lang-xml -->

    <string name="environment">dev</string> 
    <integer name="lookup_timeout">750</integer> 
    <boolean name="use_cache">true</boolean>


 - all in one place,  
 - in one single xml-file 
 - accessible from Java through some kind of unified method (`R.config.environment`)

Anything I'm missing?

**Update**: What are configuration resources? 

A set of values that typically is environment specific and will most probably change during application development.


