Problem handling touchscreen clicks on context menu!please help!
<p>Im working on a project, where at the contextmenu i select edit object and i send the information of this object.
but when i run the program a very strange prob appears, if i long press the object on the listView with the emulators buttons the information is passed normally, now if i do it with my mouse(like it would be a touchscreen) the information passed its from other object -.-
does any1 now how to fix it?</p>

<p>the creation of my contextmenu:</p>

<pre><code>  private void onListViewCreateContextMenu(ContextMenu menu, View v,
            ContextMenu.ContextMenuInfo menuInfo) {

        menu.setHeaderTitle("Selected Project");
        menu.add(0, DEL, Menu.NONE, R.string.remove);

        // define menu item
        MenuItem menuEdit = menu.add(0, EDIT, Menu.NONE, R.string.edit);

        // define intent
        Intent editIntent = new Intent(this, PM_Edit.class);

        // pass row ID or project name or whatever..
        int itemId = ((ListView) v).getSelectedItemPosition();
        itemId = itemId == -1 ? selectedPosition : itemId; // set clicked value if none selected
        Log.v(TAG, "SelectedItemPosition = " + itemId);
        editIntent.putExtra("itemId", itemId);

        // set intent to menu item
        menuEdit.setIntent(editIntent);
        ///////////////////////////////////////////////////////////////////////

        menu.add(0, TASK_LIST, Menu.NONE, R.string.task).setIntent(
                new Intent(PM_List.this, PM_Task_List.class));
        menu.add(0, CANCEL, Menu.NONE, R.string.cancel);
    }
</code></pre>
