@Override protected void onStop() { super.onStop(); // if(serviceConnection != null){ // MORTClientNetworkService.unbind(getApplicationContext(), serviceConnection); // } sDeviceInfoServer.stopCameraServer(); sDeviceInfoServer.stopSensorServer(); }
@Override protected void onStart() { super.onStart(); // MORTClientNetworkService.bind(getApplicationContext(), serviceConnection); if (mMortClient == null) { mMortClient = new MORTClient(this); mMortClient.setMORTClientNetworkListener(mortClientNetworkListener); showProgress("확인 중", "확인 중....."); mMortClient.searchMortDevice(); } sDeviceInfoServer.startCameraServer(); sDeviceInfoServer.startSensorServer(); }