Android Fail to connect to camera service
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When the user click on Camera, it open next screen after few seconds it throws Fail to connect to camera service and it say cannot connect to camera This is my code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); View viewLoad = LayoutInflater.from(CameraActivity.this).inflate(R.layout.camera, null); setContentView(viewLoad); Bundle bundle = this.getIntent().getExtras(); seletctedRetailer = bundle.getString("RetailerName"); retailerCode = bundle.getString("RetailerCode"); Intent cameraIntent = new