There are a few immutable variables to be set and used throughout the entire project. Is it correct if I simple have a class with a couple of static fields in it that I can call? Is there a better approach?
The context includes both "regular" Java projects (e.g. web service kind of thing) and Android projects. Example of what I am doing at the moment:
class Settings {
public static final String APP_TAG = "Some name";
public static final String URI = "http://43.12.323.12:8080/Server";
public static final int MAX_NUMBER_OF_PIGEONS = 25;
}
Would loading some proj_name.config be that much better? As of now, I see this alternative as extra work and no benefits.