I want get user phone number programmatically to fill user phone number field in my application. I want to get second sim phone number for dual sim phone. But i can only fetch first sim phone number,i follow this link for fetch phone number. Programmatically obtain the phone number of the Android phone
TelephonyManager tMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
String mPhoneNumber = tMgr.getLine1Number();
add this into manifest
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>