| | |
| | | private RTKConfig mRTKConfig;//RTK配置信息 |
| | | private ImageView iv_rtk_status; |
| | | private Gson gson = new Gson(); |
| | | String[] PERMISSIONS = new String[]{ Manifest.permission.ACCESS_FINE_LOCATION}; |
| | | String[] PERMISSIONS = new String[]{ Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.WRITE_EXTERNAL_STORAGE}; |
| | | RTKConfigViewModel rtkConfigViewModel; |
| | | public ExamPlatformModel examPlatformModel; |
| | | |
| | | private TextView tv_sat_num,tv_work_platform,tv_network_time, |
| | | tv_qf; |
| | | tv_qf,tv_ble_status; |
| | | |
| | | public Button btn_return; |
| | | public View viewtitle; |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | if (msgCode == Constant.ID_SM_BLUETOOTH_BRIEF){ |
| | | if (tv_ble_status != null){ |
| | | try { |
| | | JSONObject jsonObject = new JSONObject((String) obj); |
| | | int bleStatus = jsonObject.getInt("bluetooth_stauts"); |
| | | String des ="蓝牙关闭"; |
| | | switch (bleStatus){ |
| | | case 0: |
| | | des ="蓝牙关闭"; |
| | | break; |
| | | case 1: |
| | | des ="蓝牙打开"; |
| | | break; |
| | | case 2: |
| | | des ="蓝牙未连接"; |
| | | break; |
| | | case 3: |
| | | des ="蓝牙连接"; |
| | | break; |
| | | } |
| | | tv_ble_status.setText(des); |
| | | } catch (JSONException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | } |
| | | }; |
| | |
| | | tv_work_platform = findViewById(R.id.platform); |
| | | |
| | | tv_sat_num = findViewById(R.id.tv_sat_num_instatus); |
| | | tv_ble_status = findViewById(R.id.tv_ble_status); |
| | | tv_qf = findViewById(R.id.tv_qf); |
| | | iv_rtk_status.getDrawable().setLevel(0); |
| | | tv_network_time = findViewById(R.id.network_time); |