Spinner reference equality does not match when Multiple spinners fire same onItemSelected handler
<p>In my android app code, multiple spinners are handled by the same handler, 
I want to know which one is which , 
the parent reference is some how never matching with the actual spinner ..
I noticed reference addresses they were the same but equality fails..</p>

<p>I know perhaps we can use partent.getid() but references should have worked and I am surprised as to why equals or == do not work..
effectively the condition is the code below never returns true</p>

<pre><code> public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int pos, long id) 
    {
        if(!(parent instanceof Spinner))
            return;

        String strAnswer = parent.getItemAtPosition(pos).toString();

        Spinner s = (Spinner)findViewById(R.id.spinner_households);

        String strAnswer2 = s.getSelectedItem().toString();


        if(parent.equals(findViewById(R.id.spinner_households)) || parent == findViewById(R.id.spinner_households) || s == parent)
        {
            strHouseHolds = strAnswer;
        }   

    }
</code></pre>
