Weird int comparison bug in onContextItemSelected
<p>I'm facing a weird bug in my onContextItemSelected event handler. Here is the code -</p>

<pre><code>@Override
 public boolean onContextItemSelected(MenuItem item) {
     // Handle item selection
    int itemIntegerId = item.getItemId();
    if(itemIntegerId == 0)
    {           
        // Edit
        return true;            
    }
    else if(itemIntegerId == 1)
    {
        // Delete
        return true;
    }
    else 
    {
        return super.onContextItemSelected(item);
    }
 }
</code></pre>

<p>All this is placed inside a ListActivity class. The event is firing as it should, but even though the item with id 0 is selected, </p>

<pre><code>    int itemIntegerId = item.getItemId();
    if(itemIntegerId == 0)
    {           
        // Edit
        return true;            
    }
</code></pre>

<p><strong>is failing</strong></p>

<p>I've spent over half hour trying to find a solution. Any help would be appreciated. I've attached <em>relevant images</em>.</p>

<p><img src="http://i.stack.imgur.com/dlUOv.png" alt="0 == 0 Failing">
<img src="http://i.stack.imgur.com/LvW7h.png" alt="else getting executed"></p>
