Itu karena Anda melewati posisi item tampilan daftar, itu harus menjadi id baris database.
Ubah
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id)
{
showsDialog(position);
}
untuk
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id)
{
TextView pos = (TextView) view.findViewById(R.id.rowno);
showsDialog(pos.getText().toString());
}
Anda juga mengatakan
Once I delete any entry the row id on the listview doesn't seem to update the row number. (if i delete the first row, the row on top shows 2(should be 1, as it is the new first row)).
Tapi tidak karena ini adalah id baris database bukan posisi tampilan daftar.