List of usage examples for android.telephony TelephonyManager getNetworkOperatorName
public String getNetworkOperatorName()
From source file:Main.java
public static String getOperationName(Context context) { TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); return tm.getNetworkOperatorName() == null ? "" : tm.getNetworkOperatorName(); }
From source file:Main.java
public static String getNetworkOperatorName(Context context) { TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); return tm.getNetworkOperatorName(); }
From source file:Main.java
public static String getCarrierName(Context ctxt) { TelephonyManager manager = (TelephonyManager) ctxt.getSystemService(Context.TELEPHONY_SERVICE); return manager.getNetworkOperatorName(); }
From source file:Main.java
public static String getCarrier(Context context) { TelephonyManager manager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); return manager.getNetworkOperatorName(); }
From source file:Main.java
public static String getCarrier(Context context) { TelephonyManager manager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); return manager.getNetworkOperatorName().toString(); }
From source file:Main.java
public static String getCarrier(Context ctx) { TelephonyManager tm = (TelephonyManager) ctx.getSystemService(Context.TELEPHONY_SERVICE); return tm.getNetworkOperatorName().toLowerCase(Locale.getDefault()); }
From source file:Main.java
public static String getNetworkOperatorName(Context context) { TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(context.TELEPHONY_SERVICE); return telephonyManager.getNetworkOperatorName(); }
From source file:Main.java
public static String getNetworkOperatorName(Context context) { TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); return telephonyManager.getNetworkOperatorName(); }
From source file:Main.java
public static String getCarrier(Context context) { TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); return tm == null ? null : tm.getNetworkOperatorName(); }
From source file:Main.java
public static String getOperator(Context context) { String operator = "-1"; try {//ww w . java 2 s .com TelephonyManager telMgr = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); operator = telMgr.getNetworkOperatorName(); } catch (Exception e) { e.printStackTrace(); } return operator; }