dmSherazi dmSherazi - 1 year ago 125
Android Question

android- edit text - get phone number in international format like +xxxxxxxxx

I have edit text element that will get the phone number, I need the phone number to be include country code in +xxx format. I am using


how I can force the input to have that +Countrycode in the number?

I want something like Google contacts if possible or similar. If instead of flag just the country code is possible , that is also OK.

Answer Source

Finally I used IntlPhoneInput. Although I had to tweak it for my usage but this is a nice library.

Its available on gradle.

compile 'net.rimoto:intlphoneinput:0.9.3'
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download