xuxiuxi
2017-07-31 3be560df41e1287577b751870b0cf95dab9c114c
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/DeviceMng.java
@@ -9,6 +9,7 @@
import cn.com.basic.face.discern.common.CommonVariables;
import cn.com.basic.face.fragment.DeviceFragment;
import cn.com.basic.face.service.sqlite.DeviceDao;
import cn.com.basic.face.service.sync.DeleteLastMonthRecordAndPictureThread;
import cn.com.basic.face.service.sync.SyncDownThread;
import cn.com.basic.face.util.AppApi;
@@ -28,6 +29,7 @@
    private SyncUpThread syncUpThread = null;
    private SyncDownThread syncDownThread = null;
    private DeleteLastMonthRecordAndPictureThread deleteLastMonthRecordAndPictureThread = null;
    public static String authorationId = "101";
@@ -157,6 +159,10 @@
                    syncDownThread = new SyncDownThread();
                    syncDownThread.start();
                }
                if (deleteLastMonthRecordAndPictureThread == null) {
                    deleteLastMonthRecordAndPictureThread = new DeleteLastMonthRecordAndPictureThread();
                    deleteLastMonthRecordAndPictureThread.start();
                }
            }
        } else {
            Toast.makeText(BaseApplication.getInstance(), "数据库中找不到该设备", Toast.LENGTH_SHORT).show();