I am using following API to get a phone number; however, some of the device will return the number in following format:
"+" + countrycode + phone number Ex. +12062436969 TelephonyManager tm = (TelephonyManager) getSystemService(TELEPHONY_SERVICE); String phoneNumber = tm.getLine1Number(); I would like to find out a way/algorithm to remove this "+" sign and the country code, so I will get only the last ten digits. Ex. +12062436969 -> 2062436969 I believe I only need the last ten digits. could anyone please suggest any idea? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

