|
@@ -71,6 +71,8 @@ import com.lzy.okgo.db.CacheManager;
|
|
|
import com.lzy.okgo.model.HttpParams;
|
|
|
import com.orhanobut.logger.Logger;
|
|
|
import com.zedu.R;
|
|
|
+import com.zedu.cocos.congming.app.ZeduApp;
|
|
|
+import com.zedu.cocos.congming.app.daemon.DaemonCreater;
|
|
|
import com.zedu.cocos.congming.app.device.DeviceEntity;
|
|
|
import com.zedu.cocos.congming.app.device.DevicePrefs_;
|
|
|
import com.zedu.cocos.congming.component.apk.ApkInfo;
|
|
@@ -121,6 +123,11 @@ public class AppActivity extends Cocos2dxActivity {
|
|
|
// Don't need to finish it again since it's finished in super.onCreate .
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ // 守护进程
|
|
|
+ System.out.println("准备启动 守护进程 ");
|
|
|
+ DaemonCreater.init((ZeduApp)getApplication());
|
|
|
+
|
|
|
// DO OTHER INITIALIZATION BELOW
|
|
|
SDKWrapper.getInstance().init(this);
|
|
|
//启动验证激活的线程 5 秒执行一次
|
|
@@ -128,6 +135,7 @@ public class AppActivity extends Cocos2dxActivity {
|
|
|
while (true) {
|
|
|
try {
|
|
|
Thread.sleep(5000);
|
|
|
+ System.out.println("AppActivity:等待5000");
|
|
|
} catch (InterruptedException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|