How to select multiple contacts with Android SDK

2019-08-23 13:31发布

问题:

I was messing around the messaging application on Android. I've noticed that it enables me to select multiple contacts at a time to send them a message. Obviously that couldn't be done with action Intent.ACTION_PICK.

So I've reviewed its source code on Github (link) and found that the action used is ContactsContract.Intents.ACTION_GET_MULTIPLE_PHONES

The problem is that I neither could find this action on my machine nor on the official documentation link, but it's listed on this website and also used in github. Am I missing something?

And if there is no way I could use this action, what methods else could I use to select multiple contacts?