get Network Operator - Android Phone

Android examples for Phone:Network

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 av  a2s.c  o m
}

Related Tutorials