accessing package info from Activity constructor
<p>I have a blank <strong>final</strong> field in my <strong>Activity</strong>.<br> The value is not known at compile time and must be initialized from within the constructor.</p>

<p>To initialize the field, I access <strong>getPackageName()</strong> from within the constructor. Unfortunatelely this results in a <strong>NullPointerException</strong>.</p>

<p>Is there any means of accessing the package name or other Manifest info from within the constructor ?</p>

<pre><code>private String packageName;
final private boolean proVersion;

// Constructor: for initialization of blank final variables
public myActivity() {
    packageName = getPackageName().toLowerCase();
    proVersion = appVersion();
}
</code></pre>
