get Network Operator - Android Network

Android examples for Network:Network Status

Description

get Network Operator

Demo Code


//package com.java2s;

import android.content.Context;

import android.telephony.TelephonyManager;

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

Related Tutorials