| | |
| | | onlySendOnceRTKConfig = true; |
| | | } |
| | | } |
| | | |
| | | public ExamPlatformModel examPlatformModel; |
| | | @Override |
| | | protected void onCreate(Bundle savedInstanceState) { |
| | | super.onCreate(savedInstanceState); |
| | |
| | | // 进行tcp连接 |
| | | final String userId = "100002"; |
| | | final String token = "token_" + userId; |
| | | ExamPlatformModel examPlatformModel = ViewModelProviders.of(this).get(ExamPlatformModel.class); |
| | | examPlatformModel= ViewModelProviders.of(this).get(ExamPlatformModel.class); |
| | | examPlatformModel.getDataChange().observe(this, new Observer<Integer>() { |
| | | @Override |
| | | public void onChanged(Integer integer) { |