| | |
| | | import cn.com.basic.face.discern.common.BaseCommonCallBack;
|
| | | import cn.com.basic.face.discern.entity.Device;
|
| | | import cn.com.basic.face.util.SharedPreferencesUtils;
|
| | | import cn.com.basic.face.util.SyncUpAndDownThread;
|
| | |
|
| | | public class DeviceMng {
|
| | | public static DeviceMng instance = new DeviceMng();
|
| | |
|
| | | private SyncUpAndDownThread syncUpAndDownThread = null;
|
| | |
|
| | | public static String authorationId = "101";
|
| | |
|
| | |
| | | }
|
| | | }
|
| | | });
|
| | | synchronized (this) {
|
| | | if (syncUpAndDownThread == null) {
|
| | | syncUpAndDownThread = new SyncUpAndDownThread();
|
| | | syncUpAndDownThread.start();
|
| | | }
|
| | | }
|
| | | } else {
|
| | | Toast.makeText(BaseApplication.getInstance(), "数据库中找不到该设备", Toast.LENGTH_SHORT).show();
|
| | | }
|