|
|
|
@ -358,18 +358,18 @@ public class ContainerHandler extends Handler { |
|
|
|
} |
|
|
|
|
|
|
|
private void delayTime() { |
|
|
|
try { |
|
|
|
sendEmptyMessageDelayed(DELAY_TIME, DELAY_TIME); |
|
|
|
// weakReference.get().showSplashActivity();//改为前端通知容器是否进入屏保
|
|
|
|
//每5秒钟发送一次socket心跳
|
|
|
|
String second = MyApplication.getInstance().secondFormat.format(System.currentTimeMillis()); |
|
|
|
if (Integer.valueOf(second) % 5 == 0){ |
|
|
|
weakReference.get().detectionAppState(); |
|
|
|
LocSocCliManager.sendHeartBeatToServer(); |
|
|
|
} |
|
|
|
} catch (Throwable t) { |
|
|
|
LoggerUtil.e("delayTime", StringUtil.getThrowableStr(t)); |
|
|
|
} |
|
|
|
// try {
|
|
|
|
// sendEmptyMessageDelayed(DELAY_TIME, DELAY_TIME);
|
|
|
|
// // weakReference.get().showSplashActivity();//改为前端通知容器是否进入屏保
|
|
|
|
// //每5秒钟发送一次socket心跳
|
|
|
|
// String second = MyApplication.getInstance().secondFormat.format(System.currentTimeMillis());
|
|
|
|
// if (Integer.valueOf(second) % 5 == 0){
|
|
|
|
// weakReference.get().detectionAppState();
|
|
|
|
// LocSocCliManager.sendHeartBeatToServer();
|
|
|
|
// }
|
|
|
|
// } catch (Throwable t) {
|
|
|
|
// LoggerUtil.e("delayTime", StringUtil.getThrowableStr(t));
|
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|