dmSherazi dmSherazi - 9 months ago 79
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.


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'