how to know if an activity has started already
<p>I'm working in a app ,where I filter if screen is on or off and launch an activity when the screen is on, but sometime it launch the activity but the activity was started already , i would like to ask you if it was any way to know inside  my app if an activity is already launched.</p>

<p>When i start the activity i added this code </p>

<pre><code>intent11.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
</code></pre>

<p>Thank you so much.</p>
