| | |
| | | super.onCreate(); |
| | | //初始化Fragment 建议在Application onCreate里面初始化 |
| | | if (SystemUtil.compareProcessName(this)) { |
| | | Fragmentation.builder().stackViewMode(Fragmentation.BUBBLE).debug(false) |
| | | Fragmentation.builder().stackViewMode(Fragmentation.BUBBLE).debug(true) |
| | | .handleException(new ExceptionHandler() { |
| | | @Override |
| | | public void onException(@NonNull Exception e) { |
| | |
| | | MyLog.d(TAG, "考试开始,复位数据库失败项目表"); |
| | | |
| | | try { |
| | | failedProjRepository.deleteAll(); |
| | | JSONObject jsonObject =new JSONObject((String)json); |
| | | int errCode = jsonObject.getInt("error"); |
| | | switch (errCode){ |
| | |
| | | CEventCenter.dispatchEvent(Constant.REAL_TIME_POS_CAR_TOPIC,cmd,0,json); |
| | | break; |
| | | case Constant.DEBUG_RTCM: |
| | | CEventCenter.dispatchEvent(Constant.REAL_TIME_POS_CAR_TOPIC,cmd,0,json); |
| | | CEventCenter.dispatchEvent(Constant.BIND_RTCM_TOPIC,cmd,0,json); |
| | | break; |
| | | case Constant.DEBUG_TXT: |
| | | CEventCenter.dispatchEvent(Constant.REAL_TIME_POS_CAR_TOPIC,cmd,0,json); |
| | | CEventCenter.dispatchEvent(Constant.BIND_DEBUG_TXT,cmd,0,json); |
| | | break; |
| | | |
| | | } |