Method Undefined for the Type in Android
<p>I have an error stating something like:</p>

<blockquote>
  <p>The method foo() is undefined for the type bar(){}</p>
</blockquote>

<p>Eclipse tells me that after entering this code:</p>

<pre><code>((application_variables) this.getApplication()).setSomeVariable("foo");
</code></pre>

<p>I'm not sure if this is the problem, but I have it located under....</p>

<pre><code>public void onItemClick(AdapterView&lt;?&gt; parent, View view,int position, long id) {
</code></pre>

<p>I'm guessing it has a problem with "this." 
I'm still learning about Android so I'm going pretty basic. What do I need to fix?</p>
