Skip to content Skip to sidebar Skip to footer

Get Phone Number From Contact Loader In Android: Projection Crash

I am using the sample code from the Google tutorial. The projection is where I specify the data I want to collect. How do I specify that I want the phone numbers? The sample from G

Solution 1:

Thats because this URI does not support getting CommonDataKinds.Phone.NUMBER field. You should make a request to CommonDataKinds.Phone.CONTENT_URI. Take a look at this answer to make use of this URI while getting both contact name and phone.


Post a Comment for "Get Phone Number From Contact Loader In Android: Projection Crash"