I\'m getting a Fail to connect to camera service exception when I run my Android app in the emulator. I\'ve read the various existing posts but none have fixed this. It is
If you are using surface View and using code like this`
Observable.create(CameraUtils.getCameraOnSubscribe()) .subscribeOn(Schedulers.newThread()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(camera -> { mCamera = camera.open(); ... }};
Then replace mCamera=camera;