code: public int getSimState() {
  		TelephonyManager telMgr = (TelephonyManager) context
  				.getSystemService(Context.TELEPHONY_SERVICE);
  		final int simState = telMgr.getSimState();
  		return simState;
  	}
docs: Returns SIM state<br>
  Requires ACCESS_NETWORK_SATE, READ_PHONE_STATE permissions<br>
  
  @return SIM State (Refer DEV Guide, TelephonyManager)