How to find the operator of a mobile number?

Asked

Viewed 1,897 times

3

I need to develop an application to make calls using a mobile chip, but for this, I have to know the carrier of the target number.

You can discover the destination operator, programmatically, on android?

  • 1

    Dude, when you ask a question put the language you want to do it.

  • TAG = Android is a Google Operating System for mobile devices. Use this tag to reference questions related to programming for Android and be relevant only to this operating system. Use the [android-subject] tag instead of [subject] alone.

  • 1

    I understand face but Android is an S.O, The ideal is to use the Android Tag along with the language you want, because I could post a code of numerous languages and not be the one you want.

  • here is a website showing how the numbers are distributed https://www.teleco.com.br/num_cel.asp

1 answer

1

Following the documentation:

TelephonyManager manager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
String carrierName = manager.getNetworkOperatorName();
String simOperatorName = manager.getSimOperatorName();

Editing

The operator of the target number via android api is impossible, there is no way the Operating System know the operator based only on the number, mainly with portability. What I would recommend would be to pay some company that owns this Web Service and make a request in your app. Doing a quick search I found this website

  • But this does not return me to the target operator, but rather the operator of the chip that is in the cell phone, or I’m wrong?

  • @Valdomiro I edited my answer

Browser other questions tagged

You are not signed in. Login or sign up in order to post.