is CMCC Sim Card - Android Phone

Android examples for Phone:Sim

Description

is CMCC Sim Card

Demo Code


//package com.java2s;

import android.content.Context;

import android.telephony.TelephonyManager;

public class Main {
    @Deprecated/*from w w  w . j  a v  a  2  s  .co  m*/
    public static boolean isCMCCSimCard(Context context) {
        TelephonyManager teleManager = (TelephonyManager) context
                .getSystemService(Context.TELEPHONY_SERVICE);
        return teleManager.getSimOperator().equals("46000");
    }
}

Related Tutorials