| | |
| | | |
| | | private Button btn, btn2; |
| | | private Button btn_get_all,btn_on_all, btn_off_all,btn_getlocal,btn_getlocal_add; |
| | | private Button btn_setting; |
| | | private TextView tv; |
| | | private EditText editText; |
| | | private List<DevicesData> devicesDatas; |
| | |
| | | |
| | | btn_getlocal_add = findViewById(R.id.btn_getlocal_add); |
| | | |
| | | btn_setting = findViewById(R.id.btn_setting); |
| | | tv = findViewById(R.id.tv); |
| | | editText = findViewById(R.id.edt); |
| | | editText.setText("172.168.188.100"); |
| | |
| | | |
| | | } |
| | | }); |
| | | |
| | | btn_setting.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | startActivity(SettingActivity.class); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | public void startActivity(Class<?> clazz) { |