[android-beginners] Re: ListView refresh in ListActivity

2010-06-22 Thread beedaddy
Thank you Mark! In my deleteBeeyard() method, the "finally {dbCon.close();} " was the problem. I thought the SQLiteDatabase I get from getWritableDatabase() is unrelated to the previously created Cursor (with getReadableDatabase().rawQuery(...) ) for the CursorAdapter. Obviously I didn't (and st

[android-beginners] ListView refresh in ListActivity

2010-06-22 Thread beedaddy
Hello, I have a ListActivity with a custom CursorAdapter. Using a ContextMenu I delete a row from the database. My problem is, that after deleting the row, the ListView is not updated. IIRC the ListView should refresh automatically. But I also tried to trigger this with a requery() on the cursor.