How to get the phone number from an android phone. I have used this code but it doesn't get the current number. It get the number that came with the phone, so if I change the SIM it gets the previous number.
TelephonyManager manager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String number = manager.getLine1Number();
This code gets a number but not the the current one. How would I get the current number.