Limit the query in CursorLoader

前端 未结 3 1157
渐次进展
渐次进展 2021-02-04 03:06

I am trying to query data from sqlite db through CursorLoader. When i go through the documentation in android developer website, i can\'t find the limit query.

Cu

3条回答
  •  感动是毒
    2021-02-04 03:40

    You can use SQLiteQueryBuilder methods whose provides ability to have LIMIT clause. Or You can just append LIMIT to Yours selection string.
    Also, there's an option to provide limit via uri (as part of it) and handle it in your ContentProvider.
    Looks like CursorLoader is not providing any API for it currently.

提交回复
热议问题