Identify android intent type, from another method/class?
<p>I create an Intent in one class then it's returned to another class.  I need to check the type of intent it is.  I need to ensure it's not a specific class of intent.</p>

<p>How to do this?</p>

<pre><code>if( newIntent == ActivityName.class )
</code></pre>

<p>Edit:
So I would need to know if the new intent would equal an intent of a certain type:</p>

<pre><code>newIntent = new Intent(context, ActivityName.class);
return newIntent;
</code></pre>

<p>In another class:</p>

<pre><code>if( newIntent == ActivityName.class ) // do something
</code></pre>

<p>Hope this clarifies a bit.</p>
