android-cursor
Proper implementation of changing ListView data with CursorAdapter
I have a ListView populated via a CursorAdapter.I give my user 开发者_开发百科the ability to alter the data in the list.For example, the user can mark a row as being unread (the data are messages).[详细]
2023-01-15 06:33 分类:问答android code to fetch data from database
ParsedNotificationDataSet result = new ParsedNotificationDataSet(); C开发者_StackOverflow社区ursor c = db.rawQuery(\"select * from notificationtable\", null);[详细]
2023-01-13 03:42 分类:问答StaleDataException: access closed cursor
In my application, after enough clicking around, I get this error: 06-08 19:47:59.967: ERROR/AndroidRuntime(2429): java.lang.RuntimeException: Unable to pause activity {com.MYAPP.app/com.MYAPP.app.Ma[详细]
2023-01-03 06:04 分类:问答How to hide specific rows of a Cursor in android
I have a cursor, and it got, lets say, 40 rows, I want to hide some rows when the user check a checkbox.[详细]
2022-12-27 18:47 分类:问答POJO's versus Cursors in Android
I usually tend to define the model layer of my apps using POJO\'s, such as Article, Comment, etc. I was about to implement an AlphabetIndexer in the adapter of one of my ListViews. Right now this ada[详细]
2022-12-24 22:22 分类:问答How to schedule heavy work for later display for Listviews?
I have a listview with 200 items. I use a custom view for each row. There is a code that takes some time to calculate, and because of this the list hangs out on scrolling and loads in slow (2-3sec).[详细]
2022-12-24 02:48 分类:问答AutoCompleteTextView with custom list: how to set up OnItemClickListener
I am working on an app which uses tags. Accessing those should be as simple as possible. Working with an AutoCompleteTextView seems appropriate to me. What I want:[详细]
2022-12-23 11:33 分类:问答onCreateContextMenu is invoked with a null value for ContextMenuInfo
I\'m attempting to use a ContextMenu. I\'ve successfully done this for a simple ListActivity using SimpleCursorAdapter.[详细]
2022-12-11 00:00 分类:问答