How to inherit global settings class in different Android projects
<p>I have several different Android projects that use a library where I've created most of the common classes. One of the classes is "commonSettingsAndFunctions" where I've defined several static strings and methods to be used. Example:</p>

<pre><code>public class commonSettingsAndFunctions {
  public static String flurryCode = "MY_FLURRY_CODE";
  public static final int APP_VERSION = 2;
  public static final String API_URL = "http://mydomain/api.jsp"

  public static String getAPIUrl(Context context, String parameters) {
    // code
  }
}
</code></pre>

<p>However, now I've come up with a situation where I have to change some of the settings per project. For example, flurry code and app version. API_URL is always (so far) the same.</p>

<p>What's the best way to implement this? One option I thought of is making commonSettingsAndFunction as abstract, create  a class "commonSettingsAndFunctionsReal extends commonSettingsAndFunctions", then implement the "Real" class per project? Another possibilities?</p>

<p>I come from PHP world, and there I'd just have settings as a class, and do this in some "global include file":</p>

<pre><code>$common = new commonSettingsAndFunctions();
$common-&gt;flurryCode = "ABCD";
</code></pre>
