get Network Operator Name - Android Network

Android examples for Network:Network Status

Description

get Network Operator Name

Demo Code


//package com.java2s;

import android.content.Context;

import android.telephony.TelephonyManager;

public class Main {
    public static String getNetworkOperatorName(Context context) {
        TelephonyManager telephoneyManager = (TelephonyManager) context
                .getSystemService(Context.TELEPHONY_SERVICE);
        return telephoneyManager.getNetworkOperatorName();
    }/*w w w .  ja  v  a2  s  . com*/
}

Related Tutorials