Using CursorLoader to query SQLite DB and populate AutoCompleteTextView

前端 未结 3 1797
我在风中等你
我在风中等你 2021-02-13 03:42

I have a SQLite database I would like to query. I want to target Android 2.2 through ICS. I came across this article on how to do this, but it uses deprecated code (does not que

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-13 04:29

    I know this is an old question but for people who visit this page:

    SimpleCursorAdapter has a new constructor:

    SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to, int flags)
    

    this cunstructor does not use UI thread. You can use it safey.

提交回复
热议问题