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
16
votes
6 answers

How do I change the Mobile Country Code (MCC) in the Android Emulator?

My Android application needs to react differently to different Mobile Country Codes. It seems like it is hardcoded to mcc310 (US). I can read this value from TelephonyManager.getSimCountryIso() or by using a resource folder like…
neu242
  • 15,796
  • 20
  • 79
  • 114
15
votes
1 answer

Android Countries list with flags and availability of getting iso mobile codes

Needed Example of project showing all countries with flags and availability for getting countries mobile codes.
Hayk Nahapetyan
  • 4,452
  • 8
  • 42
  • 61
13
votes
7 answers

How to get country phone code for given country name in Swift iOS?

I'm working on a project I need to send the selected phone number (which user selected already from phone contacts list) to the sever with format : international-code-without-zeros-or-plus_the-number so I need to handle many cases : number without…
Alaa
  • 798
  • 1
  • 12
  • 24
9
votes
2 answers

Get phone number without country code for the purpose of comparing numbers

I can obtain the phone number from an incoming call or from a sms message. unfortunately, in case of the SMS there might be the country code in it. So, basically I need to obtain the plain phone number, without country code, in order to compare it…
Alin
  • 14,809
  • 40
  • 129
  • 218
9
votes
3 answers

Creating a spinner for choosing country code

I want to create a spinner for selecting a country and getting its country code. I already found this item list: 93,AF 355,AL 213,DZ 376,AD
Froxx
  • 957
  • 4
  • 14
  • 27
6
votes
4 answers

How to format mobile number based on country code in flutter

Can anyone tell me how to format mobile number based on country code. Hope you understand. here's what I did try so far: var controller = new MaskedTextController(mask: '(000) 000 0000'); @override Widget build(BuildContext context) { return…
6
votes
1 answer

Android MCC and MNC

I'm trying to get the mcc and mnc after a SIM LOADED state, in order to check if the SIM card did change without READ PHONE STATE permissions, in order to disable the app requests for some networks and in some countries that the user do not…
Luis Pereira
  • 1,481
  • 3
  • 19
  • 46
5
votes
1 answer

'https://restcountries.eu/rest/v2/all' not working, How to get all countries now?

Before week ago, https://restcountries.eu/rest/v2/all was giving country code but now it is not working so how can someone use it to get all country code. Code throws The SSL connection could not be established, see inner exception. The remote…
Darshana
  • 601
  • 2
  • 9
  • 20
5
votes
0 answers

Dial code from country code (mcc) using Cordova, ionic

How do I get dial code from mcc (mobile country code)? eg. India has 404 or 405 as mcc for various network operators, +91 as the standard dial-code. I am using cordova-plugin-sim plugin of cordova. When I use window.plugins.sim.getSimInfo…
Shri
  • 834
  • 1
  • 12
  • 36
5
votes
3 answers

PHP - RegEx Matching Phone Numbers with or without country code

I want to to write a matching method in php that allows me to match phone numbers. The case I have is that I want to build an app that will pull phone contact numbers from Android devices, in the backend, it will match the phone contacts with…
Ahmad Alkhawaja
  • 529
  • 2
  • 12
  • 29
4
votes
1 answer

Getting country code

I am implementing In App Purchase.In the in app product list,I have configured few products for country A and few products for country B. So my application should show only those products configured for country A for a user in country A and…
4
votes
2 answers

How to get Country Code like +91, +1, +65 from the country name like IN, US, SG in Android?

I need to get country code like +91, +1, +65... from the country name like IN, US, SG ... using locale or current Location in android device i.e suppose if device is in India it returns +91, if device is in US it returns +1, if device is in…
Jayesh
  • 3,661
  • 10
  • 46
  • 76
3
votes
5 answers

Address class getCountryCode() method returns digits

public static Country getCountryFromLocation(Context cxt, List countryList, Location location, int maxAddress) { if (location == null || countryList == null || countryList.isEmpty()) { Log.d("ooo", "location == null ||…
shanwu
  • 1,493
  • 6
  • 35
  • 45
3
votes
1 answer

MSISDN country code detection

How can I detect the country code from the following MSISDN? Cyprus (+357XXXXXXXX) -- 11 digits Finland (+358XXXXXXXXXX) -- 13 digits Serbia (+381XXXXXXX) -- 10 digits Different countries have different number of digits in their country code and…
user2432443
  • 147
  • 2
  • 11
3
votes
1 answer

How to get the country code from mobile number using php

i am getting mobile number from database in database i am haveing more the 1000 mobile numbers,my database look like this mobilenumber 971525478965 919844005522 45712345678 i want to go through each number in the database and find the…
Xavi
  • 2,552
  • 7
  • 40
  • 59
1
2 3 4 5