Android Global variable source not found
<p>I've declared a global variable class like this:</p>

<pre><code>public class globalVar extends Application {
private String globalVar= "";

public String getGlobalVar() {
        return globalVar;
}

public void setGlobalVar(String globalVar) {
        this.globalVar = globalVar;
}
@Override
public void onCreate() {
        //reinitialize variable
}

}
</code></pre>

<p>And declared it in my androidmanifest file like this:</p>

<pre><code>&lt;application android:name=".globalVar" android:icon="@drawable/icon"   
android:label="@string/app_name"&gt;    &lt;/application&gt;
</code></pre>

<p>And tried to set its value in a list under a onclicklistener:</p>

<pre><code>((globalVar)getApplication()).setGlobalVar("something");
</code></pre>

<p>I've got it to work before in another application, but for some reason it's giving me the source not found error...I've been scratching my heads off since this is my only obstacle now, has anyone experience this issue before or has an idea as to why I keep getting the error? Thanks!!</p>
