lamudi-gmbh / android-phone-field

A small library that allows you to create phone fields with corresponding country flags, and validate the phone number using libphonenumber from google.
Apache License 2.0
227 stars 67 forks source link

Get country #1

Open benoffi7 opened 8 years ago

benoffi7 commented 8 years ago

Hi! Excelente library!

How I can get the country to set in the edittext the numbers according to the flag.

Can be automatic that in a update of the library...

Thanks!

ialmetwally commented 8 years ago

@benoffi7 you want do display the country code in the edit text?

benoffi7 commented 8 years ago

Yes!

2016-07-20 6:28 GMT-03:00 Ismail Almetwally notifications@github.com:

@benoffi7 https://github.com/benoffi7 you want do display the country code in the edit text?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lamudi-gmbh/android-phone-field/issues/1#issuecomment-233899147, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7SYzEmuegDo5WzmZg7pK4guwDDsxwkks5qXepEgaJpZM4JFfzt .

SachinSingh commented 7 years ago

@benoffi7 and @ialmetwally did you got the solution?

benoffi7 commented 7 years ago

@SachinSingh no

hooman-mirghasemi commented 7 years ago

also i need to get country code and show in edit text by selecting country.

dimitrihartt commented 5 years ago

How can I get the country code after the user having entered the number. Ie: If the user enters: +49 9876543210 I could get: phone.country.code = "DE" Is it possible?