Code example for TelephonyManager

Methods: getSimOperator

0
		initView(); 
		initContent(); 
	} 
 
	private void initContent() { 
		final String code = mTeleManager.getSimOperator();
		final SpnProvider spnProvider = SpnProvider.getInstance(this);
		Log.v(TAG,"code:" + code);
		SpnInfo spnInfo = spnProvider.getSpnInfoByCode(code);
		if(spnInfo == null){
			return; 
		} 
		spn.setText(spnInfo.getName());
		sendto.setText(spnInfo.getNumber());
		applyWhat.setText(spnInfo.getText());
	} 
 
	private void initView() { 
		spn = (EditText) findViewById(R.id.traffic_spn);
		sendto = (EditText) findViewById(R.id.traffic_sendto);
		applyWhat = (EditText) findViewById(R.id.traffic_applywhat);