I'm developing an application in eclipse and I want it to work only on devices from a particular carrier. Any ideas how to check the carrier?
I'm developing an application in eclipse and I want it to work only on devices from a particular carrier. Any ideas how to check the carrier?
Android provides the class TelephonyManager that allows you to access information related to the telephone service.
It has methods that allow access to some types of subscriber information. Among them is the getNetworkOperatorName () that returns the information you want .
TelephonyManager manager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
String nomeOperadora = manager.getNetworkOperatorName();