context menu android
<p>i have a listactivity in android. A context menu open when i press an item of my listview.</p>

<p>The problem occurs when i close this context menu and i back to press the same item (the other items have no problems)</p>

<p>if i press into the text, the context menu doesn't open, but if i press in white area then the contextmenu appears.</p>

<p>¿what's the problem?</p>

<p>oncreate method:</p>

<pre><code>lv = getListView();

    lv.setOnItemClickListener(new OnItemClickListener() {
        public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {

            TextView text = (TextView) view.findViewById(R.id.label);
            if (!text.getTag().toString().equals("-1"))
            {
                registerForContextMenu(text);
                openContextMenu(text);
            }

         }
       });
</code></pre>
