android - Fail to connect to camera service cause null -


using twilio , when receiving call front camera fail load.

note : works fine when calling.

error message : unable open camera camera 1, facing front, orientation 270:fail connect camera service cause null

code

  cameracapturer= cameracapturerfactory.createcameracapturer(this, cameracapturer.camerasource.camera_source_front_camera, capturererrorlistener())  /* 

* cameracapture error listener */

 public capturererrorlistener capturererrorlistener() {     return new capturererrorlistener() {         @override         public void onerror(capturerexception e) {              log.e(tag, "camera capturer error: " + e.getmessage()+" cause  "+e.getcause());          }     }; } 


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -