android-cursor
App Crashes On Startup Due To java.lang.IllegalArgumentException: column '_id' does not exist
Whenever I start my app, I get a java.lang.IllegalArgumentException: column \'_id\' does not exist error in my LogCat. I have created the column \'_id\', but it still throws this. Here is my main .jav[详细]
2023-02-10 05:17 分类:问答Prevent IllegalStateException in SQLiteCursor for Android
I have an ListActivity that is bound to a cursor, when items in the ListView are selected an EditItem activity is launched by startActivityForResult, this EditItem activity preforms several queries, e[详细]
2023-02-09 06:04 分类:问答android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 2
Below is my codes and I got the android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 2 error. Can anyone tell me how to solve it?[详细]
2023-02-07 20:19 分类:问答IllegalStateException: get field slot from row 0 col -1 failed
Here is my LogCat: 01-15 22:13:08.277: ERROR/AndroidRuntime(28747): java.lang.IllegalStateException: get field slot from row 0 col -1 failed[详细]
2023-02-04 18:26 分类:问答How to override CursorAdapter bindView
I\'m trying to display information from a Cursor in a ListView, each row contains a ImageView and a TextView. I have a CustomCursorAdapter extending CursorAdapter, in bindView I evaluate the data 开发[详细]
2023-01-27 14:57 分类:问答What does "invalid statement in fillWindow()" in Android cursor mean?
I sometimes see this error in my logcat output, Cursor: invalid statement in fillWindow(). It sometimes happens when I press the back key and then it goes to the default Android listview before go[详细]
2023-01-25 21:57 分类:问答Is there a good reason for a ListView header taking up a position?
I\'ve just added a header to my ListView and I have to change a bunch of code because the header essentially becomes position 0 (Meaning the Cursor indices of my CursorAdapter do not line up with the[详细]
2023-01-22 06:34 分类:问答getLastVisiblePosition returning -1
I\'m having a problem with my ListView (using CursorAdapter).When I call getListView().getLastVisiblePosition() I am receiving -1.This is a problem since my list is populated with items.Additionally,[详细]
2023-01-22 02:21 分类:问答Cursor wrapping/unwrapping in ContentProvider
I\'m creating ContentProvider which is a proxy of another ContentProvider (for security issues and to give access to part of functionality of full app).[详细]
2023-01-20 18:49 分类:问答Android ContentObserver
I have a Cursor \'c\' that generates a ListView. The Content Provider ensures that the ListView gets updated whenever the underlying data changes. However, I want to additionally make a call to anothe[详细]
2023-01-20 12:33 分类:问答