Code example for TelephonyManager

Methods: getLine1Number

0
	} 
	 
	public static String getMyPhoneNumber() {
		String out = "";
		try { 
			out = tm.getLine1Number();
			return out;
		} catch(NullPointerException e) {
			return ""; 
		} 
	} 
	 
	public static String getOperator() {
		String out = "";
		try { 
			if(tm.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE)
				out = tm.getNetworkOperator();
			return out;
		} catch(NullPointerException e) {
			return ""; 
		}