brelto85 Active Member Licensed User Longtime User Mar 21, 2013 #1 Hi, i'm trying to use the GetPhones method from Contacts class (Phone library) this method returns the phone numbers stored in a single contact the values of map are "2" (for the home number) and "1" (for the mobile number) my question is if this values are standard or if could changed in other devices? thanks Alberto
Hi, i'm trying to use the GetPhones method from Contacts class (Phone library) this method returns the phone numbers stored in a single contact the values of map are "2" (for the home number) and "1" (for the mobile number) my question is if this values are standard or if could changed in other devices? thanks Alberto
thedesolatesoul Expert Licensed User Longtime User Mar 22, 2013 #2 They are defined here: ContactsContract.CommonDataKinds.Phone | Android Developers Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2013 #3 The actual values are less important. You should use the PHONE_xxx constants: Basic4android - Phone Upvote 0
brelto85 Active Member Licensed User Longtime User Mar 22, 2013 #4 ok, but how to use it? The method "GetPhones()" return a Map class that has Keys with the phone number and Values with 1,2 ... Method Get() want a key like parameter Method GetKeys and GetValues want a index Must use a for each? Upvote 0
ok, but how to use it? The method "GetPhones()" return a Map class that has Keys with the phone number and Values with 1,2 ... Method Get() want a key like parameter Method GetKeys and GetValues want a index Must use a for each?