private void TcpSetUI() { tcpSingleTon.setIndoor_soil_moisture(et_indoor_soil_moisture); tcpSingleTon.setIndoor_Temperature(et_indoor_Temperature); tcpSingleTon.setIndoor_air_humidity(et_indoor_air_humidity); tcpSingleTon.setIndoor_air_Temperature(et_indoor_air_Temperature); tcpSingleTon.setIndoor_light_illuminance(et_indoor_light_illuminance); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_indoor_monitoring); tcpSingleTon = TcpSingleTon.getInstance("", ""); tcpSingleTon.setContext(this); initView(); TcpSetUI(); }