get Mcc from Context - Android android.content

Android examples for android.content:Context

Description

get Mcc from Context

Demo Code


//package com.java2s;

import android.content.Context;

public class Main {
    public static int getMcc(Context context) {
        return context.getResources().getConfiguration().mcc;
    }/*from w  w  w.  j  a  v  a 2s  .com*/
}

Related Tutorials