Code example for TelephonyManager

Methods: getSimOperator

0
	public String getOperatorNumeric(Context context) {
		String account = getOperatorNumeric();
		if (account == null || account.isEmpty()) {
			final TelephonyManager telephonyManager = (TelephonyManager) context
					.getSystemService(Context.TELEPHONY_SERVICE);
			return telephonyManager.getSimOperator();
		} 
		return account;
	} 
 
	public String getPassword() {
		return password;
	} 
 
	public String getPasswordAstrisks() {
		final StringBuilder sb = new StringBuilder();
		for (int i = 0; i < password.length(); i++) {
			sb.append("*");
		} 
		return sb.toString();
	}