Ryan S
Ryan S

Reputation: 4567

Retrieving default number for contact

I have read How to detect the default phone number of a contact (if set), but it seems that IS_SUPER_PRIMARY only works on some phones, is there a better solution to get the default number for a contact?

Upvotes: 3

Views: 364

Answers (1)

Warpzit
Warpzit

Reputation: 28152

I believe this simply is one of those device dependent things. I'd use IS_SUPER_PRIMARY and when it returns nothing I'd just pick one from the list of numbers or let the user pick which to use. Alternatively you should look into which number from a list the user has used most often and use this as the primary.

Upvotes: 1

Related Questions