{"action":"closed","issue":{"url":"https://api.github.com/repos/journeyapps/zxing-android-embedded/issues/198","repository_url":"https://api.github.com/repos/journeyapps/zxing-android-embedded","labels_url":"https://api.github.com/repos/journeyapps/zxing-android-embedded/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/journeyapps/zxing-android-embedded/issues/198/comments","events_url":"https://api.github.com/repos/journeyapps/zxing-android-embedded/issues/198/events","html_url":"https://github.com/journeyapps/zxing-android-embedded/issues/198","id":170995992,"number":198,"title":"java.lang.RuntimeException: Failed to open camera in Kitkat and lower","user":{"login":"hasanarmsys","id":19404591,"avatar_url":"https://avatars.githubusercontent.com/u/19404591?v=3","gravatar_id":"","url":"https://api.github.com/users/hasanarmsys","html_url":"https://github.com/hasanarmsys","followers_url":"https://api.github.com/users/hasanarmsys/followers","following_url":"https://api.github.com/users/hasanarmsys/following{/other_user}","gists_url":"https://api.github.com/users/hasanarmsys/gists{/gist_id}","starred_url":"https://api.github.com/users/hasanarmsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasanarmsys/subscriptions","organizations_url":"https://api.github.com/users/hasanarmsys/orgs","repos_url":"https://api.github.com/users/hasanarmsys/repos","events_url":"https://api.github.com/users/hasanarmsys/events{/privacy}","received_events_url":"https://api.github.com/users/hasanarmsys/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-13T06:29:53Z","updated_at":"2016-08-18T12:32:49Z","closed_at":"2016-08-18T12:32:49Z","body":"#### Description of the problem:\r\nI have integrated the same barcode scanner into my app. It is working fine only in android Marshmallow and Lollipop. But when i run it on Kitkat it shows\r\njava.lang.RuntimeException: Failed to open camera \r\ncould you please help me out to solve this?\r\n\r\nI am using  compile 'com.journeyapps:zxing-android-embedded:3.3.0'\r\n\r\nThis is my MainActivity where i am using the scanner\r\n\r\npublic class MainActivity extends AppCompatActivity {\r\n@Override\r\nprotected void onCreate(Bundle savedInstanceState) {\r\n    super.onCreate(savedInstanceState);\r\n    setContentView(R.layout.activity_main);\r\n\r\n    Button button = (Button) findViewById(R.id.button_scan);\r\n    button.setOnClickListener(new View.OnClickListener() {\r\n        @Override\r\n        public void onClick(View v) {\r\n            new IntentIntegrator(MainActivity.this).initiateScan();\r\n        }\r\n    });\r\n}\r\n\r\n@Override\r\nprotected void onActivityResult(int requestCode, int resultCode,Intent data) {\r\n    IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\r\n    if(result != null) {\r\n        if(result.getContents() == null) {\r\n            Toast.makeText(this, \"Cancelled\",   Toast.LENGTH_LONG).show();\r\n        } else {\r\n            Toast.makeText(this, \"Scanned: \" + result.getContents(), Toast.LENGTH_LONG).show();\r\n\r\n    } else {\r\n        super.onActivityResult(requestCode, resultCode, data);\r\n    }\r\n}\r\n\r\n\r\n"}}
{"actor":{"display_login":"rkistner"}}