If Statement cant be recognised?
<p>I'm having an issue with my if statement in my app development code </p>

<pre><code>if (Intent.resolveActivity(getPackageManager())!=null)
        {
            startActivity(intent);
        }
</code></pre>

<p>the error is brought up on the resolveActivity section which the error is as follows :</p>

<blockquote>
  <p>Non-static method <br>
  'resolveActivity(android.content.pm.PackageManager)' cannot be referenced from a static context.</p>
</blockquote>

<p>What does this mean and how do I resolve it?</p>

<p>Thanks. </p>