-1

when i am deleting a row from the database then it deletes row successfully ,, suppose that i had deleted the row 2 from the database then when i click on row 3 then it shows the content of row 4 . on clicking row 1 its working fine but on clicking row 2 it pop up with force closed and error is CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 ... on clicking the row it shows text value saved in that row ... i have populated listview by simplecursoradapter . please someone do some help

4

1 回答 1

0

当您对用于在 ListView 中填充数据的适配器数据进行任何更改时,请使用 notifyDataSetChanged() 请查看此视频以了解其重要性

于 2012-10-31T15:00:05.123 回答