| | |
| | | FileUtil.createdirs(getApplicationContext()); |
| | | |
| | | //考试状态 ,一些初始状态,app一些状态应该先初始化一下 |
| | | initData(); |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | int type = WorkRoomDataBase.getWorkRoomDataBase(getApplicationContext()).getExamStatusDao().getStartExamInt(); |
| | | ExamPlatformData.getInstance().setExamType(type); |
| | | OneTimeWorkRequest examStatausOutWorker = OneTimeWorkRequest.from(ExamStatusOutWorker.class); |
| | | sendMapInfo(); |
| | | sendVechileInfo(); |
| | | OneTimeWorkRequest mcuUpgradeWorker = OneTimeWorkRequest.from(MCUUpgradeWorker.class); |
| | | WorkManager.getInstance(getApplicationContext()).beginWith(examStatausOutWorker).then(mcuUpgradeWorker).enqueue(); |
| | | }); |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | CEventCenter.dispatchEvent(Constant.BIND_RTK_INFO_MAP,cmd,0,json); |
| | | |
| | | |
| | | if (ExamPlatformData.getInstance().getExamplatformStatus()==ExamPlatformData.DEV_LOGIN){ |
| | | try { |
| | |
| | | } |
| | | |
| | | } |
| | | private String last0206Str=""; |
| | | |
| | | @Override |
| | | public void bindStatus(int code) { |
| | | MyLog.i(String.format("bindStatus = %d",code)); |
| | | if (code == 0){ |
| | | ExamPlatformData.getInstance().getTTS().speak("服务绑定成功"); |
| | | initData(); |
| | | }else{ |
| | | ExamPlatformData.getInstance().getTTS().speak("服务异常死亡"); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | private String last0206Str=""; |
| | | private int lastSatNum= 0; |
| | | private int lastQf = 0; |
| | | |
| | |
| | | byte[] fileContent = FileUtil.readFile(roadmapPath); |
| | | if (fileContent != null){ |
| | | String str = new String(fileContent); |
| | | Log.i(TAG, "文件内容:"+str); |
| | | MyLog.i("文件内容:"+str); |
| | | AYSdk.getInstance().sendCmd(Constant.PUSH_ROAD_MAP_INFO,str); |
| | | }else{ |
| | | MyLog.i(String.format("文件:%s不存在",roadmapPath)); |