| | |
| | | import androidx.work.OneTimeWorkRequest; |
| | | import androidx.work.WorkManager; |
| | | |
| | | import com.anyun.exam.lib.util.ByteUtil; |
| | | import com.anyun.exam.lib.util.Speaker; |
| | | import com.google.android.material.textfield.TextInputEditText; |
| | | |
| | |
| | | import safeluck.drive.evaluation.DB.failitems.FailedProj_select; |
| | | import safeluck.drive.evaluation.DB.gps.GpsInfoWorker; |
| | | import safeluck.drive.evaluation.R; |
| | | import safeluck.drive.evaluation.bean.RegisterMessage; |
| | | import safeluck.drive.evaluation.im.IMSClientBootstrap; |
| | | import safeluck.drive.evaluation.im.MessageProcessor; |
| | | import safeluck.drive.evaluation.tcp.ConnectThread; |
| | | import safeluck.drive.evaluation.util.Utils; |
| | | |
| | | /** |
| | | * MyApplication2 |
| | |
| | | |
| | | String userId = "100002"; |
| | | String token = "token_" + userId; |
| | | String hosts = "[{\"host\":\"192.168.10.234\", \"port\":8855}]"; |
| | | String hosts = "[{\"host\":\"47.93.80.84\", \"port\":12125}]"; |
| | | // String hosts = "[{\"host\":\"192.168.31.77\", \"port\":12125}]"; |
| | | |
| | | IMSClientBootstrap.getInstance().init(userId,token,hosts,1); |
| | | break; |
| | |
| | | //清除app_status 表 |
| | | // OneTimeWorkRequest oneTimeWorkRequest = new OneTimeWorkRequest.Builder(AppStatusInitWork.class).build(); |
| | | // WorkManager.getInstance(_mActivity).enqueue(oneTimeWorkRequest); |
| | | |
| | | |
| | | RegisterMessage registerMessage = new RegisterMessage((short)0x802); |
| | | registerMessage.setCityid((short) 1); |
| | | registerMessage.setProviceId((short)23); |
| | | registerMessage.setImei("460123874561"); |
| | | registerMessage.setModel("123"); |
| | | registerMessage.setSn("2019101500000001"); |
| | | break; |
| | | } |
| | | } |