Raman Sidhu
Raman Sidhu

Reputation: 29

How to query both SMS and Contacts with same URI?

I am working on SMS Module.

I need to give searching contact via name, number and SMS via body?

I am able to search SMS body with CursorLoader via

content://mms-sms/search

Contacts separately via

ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI

So is there any separate URI search these two things which i am not aware of or Merge these two under one list With using CursorLoader.

Appreciate any lead.

or is there some way to improve sms search and customize it.

Upvotes: 0

Views: 78

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006744

So is there any separate URI search these two things which i am not aware of or Merge these two under one list

No.

Also, bear in mind that not every SMS will be to or from a user's contact.

Upvotes: 1

Related Questions