Android Context Get getCarrier(Context context)

Here you can find the source of getCarrier(Context context)

Description

get Carrier

License

Open Source License

Declaration

public static String getCarrier(Context context) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import android.content.Context;
import android.telephony.TelephonyManager;

public class Main {
    public static String getCarrier(Context context) {
        TelephonyManager manager = (TelephonyManager) context
                .getSystemService(Context.TELEPHONY_SERVICE);
        return manager.getNetworkOperatorName();
    }//from w  ww  . j  av a 2s  .  c o  m
}

Related

  1. getAsset(@Nonnull Context context, @Nonnull String path)
  2. getAuthorityFromPermission(Context context, String permission)
  3. getBatteryUsageInfo(Context context)
  4. getBoolean(Context context, String key, boolean defValue)
  5. getBroadcastAddress(Context context)
  6. getCertificateFingerprint(Context ctx, String packageName)
  7. getCertificateFromSDCard(Context context)
  8. getChannelNo(Context context)
  9. getConnectedType(Context context)