Questions tagged [mobile-country-code]

ISO-3166 standard defining 2 and 3 character identifiers for each country in the world.

ISO-3166 standard defining 2 and 3 character identifiers for each country in the world.

69 questions
3
votes
3 answers

How to convert "Country code" to "Mobile Country Code" programmatically in iOS?

I am able to grab the country code (ISO 3166 'two letter code') from NSLocale or from GeoPlugin. But my requirement is to get the MCC (mobile country code). I need to call one REST API with this current mcc of a device to determine if the user is…
Selvin
  • 12,333
  • 17
  • 59
  • 80
3
votes
1 answer

android : How to set Country code manually in emulator

When i use following code , it always shows the country code as US. context = MainActivity.this; String locale = context.getResources().getConfiguration().locale.getCountry(); TelephonyManager telephonyManager = (TelephonyManager)…
Master Mind
  • 2,386
  • 3
  • 31
  • 48
2
votes
3 answers

how to get country code like(+91 ,+1 etc) using user's current location flutter

I'm working on flutter app and I have a text widget where I want to show user's current country code based on his location without any dropdown. I'm getting value like "IN","US" using Locale, but I don't want it, I need numeric country code like +91…
2
votes
0 answers

How to disable all country names in dropdown menu in intl-tel-input plugin

I need to disable all country names in dropdown menu of International Telephone Input v17.0.13. I looking for some "Configuration Options" which will disable country names in drop down menu. I want to leave only all phone dial codes in that dropdown…
2
votes
1 answer

How to remove a country from intl-tel-input

(new in javascript) I am asked to remove a country (China) from the dropdown menu of the plugin intl-tel-input the code below displays the dropdown menu and it looks that it calls the utils.js file to retain the countries var iti =…
2
votes
1 answer

How to add country code picker into material design edit text layout?

I'm using https://github.com/hbb20/CountryCodePickerProject library for country code picker. This is the way that UI designers did it. But unfortunately, Can anyone have the XML solution to this? You must use the hbb20 country code picker & material…
Sanush
  • 305
  • 1
  • 4
  • 14
2
votes
1 answer

Getting Complete Contact's Phone Number With Country Code, Even if Country Code is Not Entered

I am working on an app where have a login activity, in which, when the user logs in, it automatically saves contacts from their phone to the server. This works, but I have one issue, when I save the numbers they are saved in the format the user…
Banana
  • 2,435
  • 7
  • 34
  • 60
2
votes
2 answers

separating country code from mobile number if present android

I have a code which fetches phone number from mobile contacts using Content Resolver.I tested it on 2 mobiles.In one it fetches the country code and in another it doesnt.Is there a way to find out if a country code is present in a mobile number and…
2
votes
1 answer

how to get country code from Mobile number in php

Is there any way to find the country code of a phone number in PHP? If I have +971526457896, I will receive the country code as +971 (if its United Arab Emirates). Any suggestions please, how to do that?
Xavi
  • 2,552
  • 7
  • 40
  • 59
1
vote
0 answers

Why i am getting null value for getNetworkCountryIso() in xperia?

I am getting null value for getNetworkCountryIso() in xperia(android) without sim. but it is working fine in other devices like samsung and LG.
Kris
  • 891
  • 2
  • 18
  • 41
1
vote
1 answer

Is there an API for fetching list of countries according iso 3166-1?

Is it possible to fetch a list of countries according to ISO 3166-1 ? I have found this package (Countries), however I am not sure whether it is reliable source or not. How do you handle it ? Also, there is a list of available countries in PDF, see…
1
vote
2 answers

Select country then automatically show country code on next input

I'm trying to add a person's nationality and phone number. So I have a dropdown with country names for nationality and an input box to enter a phone number. When a person choose the nationality (country), the next input Phone should show the country…
Miracle1029
  • 23
  • 2
  • 5
1
vote
1 answer

How to determine if a phone number (with country calling code) is equal to another (whithout country calling code)

I am working on an application like 'Viber' for iPhone ( http://www.viber.com/ ). I need to use the user phone number as ID in my database. When the user launch the application, I need to determine which contacts use the same application. I can get…
arnaud del.
  • 904
  • 12
  • 27
1
vote
2 answers

Customise TextInputEditText with a CountryCode Picker

Hi I want to make edit text look like this I have tried adding country picker in textinputlayout, but it never draws view as shown in layout editor
1
vote
2 answers

Is there a way to validate international phone number in flutter

I am using flutter country_code_picker 1.4.0 package to get the dial code, Is there any way to validate international phone number by length. country_code_picker package
s.am.i
  • 648
  • 5
  • 16