| | |
| | | import android.view.View; |
| | | import android.view.ViewGroup; |
| | | import android.widget.Button; |
| | | import android.widget.EditText; |
| | | import android.widget.Toast; |
| | | |
| | | import com.anyun.exam.lib.AYSdk; |
| | |
| | | import me.yokeyword.fragmentation.SupportFragment; |
| | | import safeluck.drive.evaluation.Constant; |
| | | import safeluck.drive.evaluation.R; |
| | | import safeluck.drive.evaluation.bean.ExamPlatformData; |
| | | import safeluck.drive.evaluation.util.FileUtil; |
| | | |
| | | /** |
| | |
| | | private Button btn_inspect_signal; |
| | | private Button btn_config_signal; |
| | | private Button btn_mcu_upgrade; |
| | | private EditText et_ip,et_port; |
| | | |
| | | public static SupportFragment newInstance() { |
| | | return new BaseDatasFragment(); |
| | |
| | | } |
| | | |
| | | private void initView(View view) { |
| | | view.findViewById(R.id.btn_save_platform); |
| | | et_ip = view.findViewById(R.id.et_platform_ip); |
| | | et_port = view.findViewById(R.id.et_platform_port); |
| | | btn_inspect_signal = view.findViewById(R.id.btn_inpsect_signal); |
| | | btn_mcu_upgrade = view.findViewById(R.id.btn_mcu_upgrade); |
| | | btn_mcu_upgrade.setOnClickListener(this); |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | break; |
| | | case R.id.btn_save_platform: |
| | | ExamPlatformData.getInstance().insertPlatformIp(et_ip.getText().toString().trim()); |
| | | ExamPlatformData.getInstance().insertPlatformPort(Integer.parseInt(et_port.getText().toString().trim())); |
| | | break; |
| | | default: |
| | | break; |
| | | } |