[android-developers] How to get phone number if a contact has more than one number in Android

2012-02-05 Thread Mai Long Dao
I used this code, and I can get the number from a contact when clicked to a contact. However, some contacts have more than one phone number. How can I access to another cell number. Thanks in advance. Here is my code: //Choose number from phone book setup btnPhonebook.setOnClickListener(new

[android-developers] how to get phone number

2011-06-27 Thread Ellen
Dear Android Experts, I'm trying to get the SIM number by TelephonyManager.getLine1Number(), permision has been set READ_PHONE_STATE. As many thread discussed before, it couldn't work in a real device due to the Internet Operator didn't store this info to SIM card. Now is there any other way or

[android-developers] how to get phone number through other method

2011-06-27 Thread ellen...@hotmail.com
Dear Android experts, I'm trying to get the phone number through TelephonyManager.getLine1Number(). As many threads discussed before, it couldn't work in a real device, null as the result. Now my question is, whether there is some other way to get the phone number? I searched one method said