So I’m trying to store some configuration values such as serviceUrl in a file, instead of hard-coding it in my code?
- Where is the proper place to store this information?
- Does android have some sort of configuration manager, or am I suppose to write my own config class that reads needed info from a file?
I ended up using
java.util.propertiesalong withAssetManagerin andorid to read a properties file fromassetsdirectory.AssetManager: http://developer.android.com/reference/android/content/res/AssetManager.html
Properties: http://docs.oracle.com/javase/tutorial/essential/environment/properties.html