Group By in ContentResolver in Ice Cream Sandwich

后端 未结 3 665
春和景丽
春和景丽 2020-12-06 05:19

I am making a query on the Android Contacts ContentProvider. I need a Group By clause. In Gingerbread and Honeycomb, I do something like this to search phone numbers and ema

3条回答
  •  一向
    一向 (楼主)
    2020-12-06 05:35

    You could create a custom Uri such that when your UriMatcher in your ContentProvider gets it, you can insert your group by clause and then execute the raw sql directly on the database.

提交回复
热议问题