RuntimeException when trying to use android.app.Application
<p>I'm trying to use a custom class (be.myname.rssreader.util.Global) extending android.app.Application, but when I try to use its accessors, I get the following exception:</p>

<blockquote>
  <p>02-23 11:42:12.973:
  ERROR/AndroidRuntime(2050):
  java.lang.RuntimeException: Unable to
  start activity
  ComponentInfo{be.myname.rssreader/be.myname.rssreader.view.RSSReader}:
  java.lang.NullPointerException</p>
</blockquote>

<p>Before you ask, yes, it's in my manifest, as follows:</p>

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

<p>The code where the exception is thrown is this:</p>

<pre><code>global.setService(new FeedService(getApplicationContext()));
</code></pre>

<p>It's placed in the onCreate of my main Activity, immdiately after the calls to super.onCreate and setContentView.</p>

<p>Any ideas why this keeps throwing that exception?</p>

<p>Thanks.</p>
