{"id":17337539,"url":"https://github.com/zkrige/zbar-android","last_synced_at":"2025-03-27T08:12:15.008Z","repository":{"id":16899616,"uuid":"19660463","full_name":"zkrige/ZBar-android","owner":"zkrige","description":"Android dropin to scan barcodes using ZBar","archived":false,"fork":false,"pushed_at":"2017-10-06T15:52:47.000Z","size":1646,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T13:11:54.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zkrige.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-11T06:55:18.000Z","updated_at":"2017-05-01T06:55:21.000Z","dependencies_parsed_at":"2022-08-26T16:11:41.542Z","dependency_job_id":null,"html_url":"https://github.com/zkrige/ZBar-android","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkrige%2FZBar-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkrige%2FZBar-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkrige%2FZBar-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkrige%2FZBar-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkrige","download_url":"https://codeload.github.com/zkrige/ZBar-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806458,"owners_count":20675298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T15:35:16.865Z","updated_at":"2025-03-27T08:12:14.987Z","avatar_url":"https://github.com/zkrige.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"ZBar-android\n============\n\nAndroid dropin to scan barcodes using ZBar (original source : https://github.com/herbyme/zbar)\n\nUsage:\n======\n1. add zbar-android as a library dependency to your project\n2. declare the activity in your android manifest as follows\n```\n\u003capplication\n\t.\n\t.\n\t.\n    \u003cactivity android:name=\"com.zayinkrige.barcode.BarcodeScan\"\u003e\u003c/activity\u003e\n\u003c/application\u003e\n```\n4. start the barcode scanner \n```\nIntent intent = new Intent(this, BarcodeScan.class);\nstartActivityForResult(intent,999);\n```\n5. get barcode result\n```\nprotected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n\tswitch (requestCode) {\n\tcase 999:\n\t\tif (resultCode == RESULT_OK) {\n\t\t\tString barcode = intent.getExtras().getString(\"barcode\");\n\t\t}\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkrige%2Fzbar-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkrige%2Fzbar-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkrige%2Fzbar-android/lists"}