Here you can find the source of getSimState(TelephonyManager tm)
public static int getSimState(TelephonyManager tm)
//package com.java2s; import android.telephony.TelephonyManager; public class Main { public static int getSimState(TelephonyManager tm) {// int return tm.getSimState(); }//from w w w .j a v a 2s . c o m }