How to get a photo, email address and phone number of a user in one request

I use three different requests to get a photo, email address and phone number with the following URI:

private final Uri mEmailUri = ContactsContract.CommonDataKinds.Email.CONTENT_URI;
private final Uri mPhotoUri = ContactsContract.Data.CONTENT_URI;
private final Uri mPhoneUri = ContactsContract.CommonDataKinds.Phone.CONTENT_URI;

It takes too much time to record. Is there a faster way to achieve it?

+5
source share

All Articles