| | |
| | | des ="蓝牙未连接"; |
| | | break; |
| | | case 3: |
| | | //需要延迟再发送,因为发送蓝牙已连接在前,收到sn在后,所以延迟发送3 ,可以取得sn |
| | | scheduledExecutorService.schedule(()->{ authMapViewmodel.setAuthValue(3);},2,TimeUnit.SECONDS); |
| | | |
| | | des ="蓝牙连接"; |
| | | String mac = jsonObject.getString("bluetooth_addr"); |
| | | SPUtils.put(getApplicationContext(),SPUtils.BLUETOOTH_MAC,mac); |
| | |
| | | ExamPlatformData.getInstance().setCanWriteSD(true); |
| | | //只要app不销毁(重启)只会请求一次,但是确保PERMISSIONS最后一个元素是writeSD |
| | | |
| | | |
| | | //需要延迟再发送,因为发送蓝牙已连接在前(先不判断蓝牙状态,只要有sn,12/10),收到sn在后,所以延迟发送3 ,可以取得sn |
| | | scheduledExecutorService.schedule(()->{ authMapViewmodel.setAuthValue(3);},2,TimeUnit.SECONDS); |
| | | } |
| | | |
| | | @Override |