| | |
| | | return application; |
| | | } |
| | | |
| | | private Device device; |
| | | private Device androidDevice; |
| | | private Device camera1; |
| | | private Device camera2; |
| | | |
| | | |
| | | public static boolean deviceAvailable = false; |
| | | |
| | | public void setDevice(Device device) { |
| | | this.device = device; |
| | | public void setAndroidDevice(Device device) { |
| | | this.androidDevice = device; |
| | | if (device != null && device.getDeviceId() != null && !"".equals(device.getDeviceId())) { |
| | | deviceAvailable = true; |
| | | DictionaryMng.getInstance().loadAllDictionaryData(); |
| | | } |
| | | } |
| | | |
| | | public Device getDevice() { |
| | | if (device == null) { |
| | | device = new Device(); |
| | | public void setCamera1(Device camera1) { |
| | | this.camera1 = camera1; |
| | | if (camera1 != null && camera1.getDeviceId() != null && !"".equals(camera1.getDeviceId())) { |
| | | DictionaryMng.getInstance().loadAllDictionaryData(); |
| | | } |
| | | return device; |
| | | } |
| | | |
| | | public void setCamera2(Device camera2) { |
| | | this.camera2 = camera2; |
| | | if (camera2 != null && camera2.getDeviceId() != null && !"".equals(camera2.getDeviceId())) { |
| | | DictionaryMng.getInstance().loadAllDictionaryData(); |
| | | } |
| | | } |
| | | |
| | | public Device getAndroidDevice() { |
| | | if (androidDevice == null) { |
| | | androidDevice = new Device(); |
| | | } |
| | | return androidDevice; |
| | | } |
| | | |
| | | @Override |