Android: java.lang.IllegalAccessException when attempting to use a custom "Application" class
<p>I'm trying to create define a custom Application class as follows:</p>

<ol>
<li>create an empty subclass of
Application called MyApp</li>
<li>in the manifest, specify
android::name for my application: 
<code>&lt;application android:name=".MyApp"
...</code></li>
</ol>

<p>However, when I attempt to run my app, I get:
<code>java.lang.RuntimeException: Unable to instantiate application com.test.MyApp java.lang.IllegalAccessException: access to class not allowed</code></p>
