SimpleCursorAdapter for the ListView and the database. How to use?

I hate to sound stupid, but after reading about SimpleCursorAdapter so I do not understand.
Actually I want to implement a trivial thing: have a DB of data, want to fill the listview with these data but that would click on the element was taken sootvetstvuyuschaya record from DB by id.

Very long used to compile ArrayAdapter listview, everything worked until I implemented the delete from the database. After deletion, the list collapsed and fell NullPointerExeption or references not on the correct data.

Read that one would rather use a SimpleCursorAdapter. Please explain briefly how it works or give a link to available man. All that was found, it was crowded with unnecessary code and do not understand. Thank you.
September 19th 19 at 12:07
0 answer

Find more questions by tags AndroidSQLite