Code example for TelephonyManager

Methods: getSimState

0
	public static int getSimState(Context context) {
		TelephonyManager manager = getTelephonyManager(context);
		if (manager == null)
			return -1; 
 
		return manager.getSimState();
	} 
 
	/** IMSI */ 
	public static String getSubscriberId(Context context) {
		TelephonyManager manager = getTelephonyManager(context);
		if (manager == null)
			return null; 
 
		return manager.getSubscriberId();
	} 
 
	public static String getVoiceMailNumber(Context context) {
		TelephonyManager manager = getTelephonyManager(context);
		if (manager == null)
Stop searching for code, let great code find you!  Add Codota to your java IDE