hbb20 / CountryCodePickerProject

Country Code Picker (CCP) is an android library which provides an easy way to search and select country or international phone code. Also supports Android EditText phone mask and international phone validation.
Apache License 2.0
1.51k stars 503 forks source link

Get the Phone Number only #376

Open SamratAltis opened 4 years ago

SamratAltis commented 4 years ago

I would like to get only the phone number without the country on loading a data. Is it possible?

MahmoudMabrok commented 4 years ago

explain with design please?

sammy-kol commented 4 years ago

For example the full number goes like this +9110234567890 for India, +11234567890 for US or +8801234567890 for Bangladesh. Is it possible to get just the number without the country code?

hbb20 commented 4 years ago

You need carrier number, right? That’s is exactly what user enters in your editText so editText.getText() should work.

On Wed, Apr 29, 2020 at 02:17 Samrat Lahiri notifications@github.com wrote:

For example the full number goes like this +9110234567890 for India, +11234567890 for US or +8801234567890 for Bangladesh. Is it possible to get just the number without the country code?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hbb20/CountryCodePickerProject/issues/376#issuecomment-621057680, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFQ32FHSCYEURRSJ4RECALRO7PCTANCNFSM4KY7SX5Q .

sammy-kol commented 4 years ago

No actually I am fetching the data from server. Now in server Full Number with '+' is stored. Can I just get the carrier number from the full number?

hbb20 commented 4 years ago

I see.. try this... bind your Carrier edit text with CCP and then ccp.loadFullNumber() this will Set carrier number in edit text. Unfortunately I did not create any util to do this.

On Sat, May 2, 2020 at 01:13 Samrat Lahiri notifications@github.com wrote:

No actually I am fetching the data from server. Now in server Full Number with '+' is stored. Can I just get the carrier number from the full number?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/hbb20/CountryCodePickerProject/issues/376#issuecomment-622772687, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFQ32FKT523NZUUZY3XXSDRPPBX7ANCNFSM4KY7SX5Q .