get Network Operator Name - Android Phone

Android examples for Phone:Network

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();
    }/*from   w ww.  j a v a 2 s . com*/
}

Related Tutorials