android: got error value on listview pick
<p>i have listview that connect to database.</p>

<p>when i pick row i get the same id.</p>

<pre><code>public void onListItemClick(ListView parent, View v, int position,long id) {
        showDialog(DELETE_ROW);
    }


else if (id==2)
{
  builder.setMessage(c.getString(0)); &lt;-- here i get error id - same id all the time
  builder.setTitle("AAA");
  builder.setIcon(R.drawable.no);
  builder.setCancelable(false);
  builder.setPositiveButton("yes ", new DialogInterface.OnClickListener()
  {
    public void onClick(DialogInterface dialog, int id)
    {
      Toast.makeText(getBaseContext(),c.getString(0),Toast.LENGTH_SHORT).show(); &lt;-- here i get the real id - what i need
     }
    });
    builder.setNegativeButton("no", new DialogInterface.OnClickListener()
    {
      public void onClick(DialogInterface dialog, int id)
    {
      return;
    }
   });
}
</code></pre>

<p>what can be the problem ?</p>
