Can't open my application when I receive a call on android
<p>I can't open my application window on top when I receive a call on android</p>

<p>My code:</p>

<pre><code>Intent intent = new Intent( Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setClassName(getPackageName(), getPackageName()+"."+getLocalClassName());
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT  );
startActivity(intent); 
</code></pre>

<p>Am I missing something?</p>
