{"id":1820,"date":"2016-10-14T23:03:45","date_gmt":"2016-10-14T14:03:45","guid":{"rendered":"http:\/\/blog.4star.link\/?p=1820"},"modified":"2016-10-14T23:09:37","modified_gmt":"2016-10-14T14:09:37","slug":"zxing%e3%81%a7qr%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%84%e3%81%a6%e3%80%81androidos6%e3%81%a0%e3%81%91%e3%82%ab%e3%83%a1%e3%83%a9%e8%b5%b7%e5%8b%95%e6%99%82%e3%81%ab","status":"publish","type":"post","link":"https:\/\/blog.4star.link\/?p=1820","title":{"rendered":"zxing\u3067QR\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001AndroidOS6\u3060\u3051\u30ab\u30e1\u30e9\u8d77\u52d5\u6642\u306b\u30a8\u30e9\u30fc\u304c\u3067\u308b\u70b9\u89e3\u6c7a\u65b9\u6cd5"},"content":{"rendered":"<p>zxing\u3067QR\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\u308b\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001<br \/>\n\u7279\u5b9a\u306e\u7aef\u672b\u3060\u3051\u30ab\u30e1\u30e9\u8d77\u52d5\u6642\u306b\u3001<\/p>\n<h2><strong>\u300cAndroid\u306e\u30ab\u30e1\u30e9\u306b\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u30c7\u30d0\u30a4\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u300d<\/strong><\/h2>\n<h4>\u306a\u3093\u3058\u3083\u3053\u308a\u3083\u3002\u3002<\/h4>\n<h4>\u8272\u3005\u691c\u8a3c\u3057\u3066\u307f\u308b\u3068<strong>AndroidOS6 (\u30de\u30b7\u30e5\u30de\u30ed)<\/strong>\u3060\u3051\u306e\u554f\u984c\u306a\u3088\u3046\u306a\u3001\u3002\u3002<\/h4>\n<p>logcat\u3067\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3001\u3001<\/p>\n<pre><code><br \/>Attempt to invoke virtual method 'android.hardware.Camera$Parameters android.hardware.Camera.getParameters()' on a null object reference\n\n<\/code><\/pre>\n<p>\u3053\u3046\u3044\u3046\u30a8\u30e9\u30fc\u304c\u3002\u3002<strong>zxing\u30e9\u30a4\u30d6\u30e9\u30ea<\/strong>\u306e\u4e2d\u8eab\u3067\u30a8\u30e9\u30fc\u5c65\u3044\u3066\u3066\u3001<br \/>\n\u3069\u3046\u3057\u3088\u3046\u3082\u3002\u3002<\/p>\n<p>\u3067\u30ba\u30d0\u30ea\u89e3\u6c7a\u65b9\u6cd5\u306f\u3001<br \/>\n<strong>\u30e9\u30a4\u30d6\u30e9\u30ea\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\uff01\uff01\uff01<\/strong><\/p>\n<p>build.gradle(app)<\/p>\n<pre><code><br \/>dependencies {\n\u301c\n    compile 'com.journeyapps:zxing-android-embedded:3.3.0'\n\u301c\n}\n\n\n<\/code><\/pre>\n<h3>3.2\u304b\u30893.3\u306b\u3057\u305f\u3089\u89e3\u6c7a\uff57<\/h3>\n<p>\u3042\u3068\u3001androidOS6\u304b\u3089\u304b\u3001\u3001\u30ab\u30e1\u30e9\u306e\u6271\u3046\u8a31\u53ef\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u305f\u3002\u3002<\/p>\n<blockquote>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8\uff1a<br \/>\n  <a href=\"http:\/\/stackoverflow.com\/questions\/37685141\/nullpointerexception-with-zxing-library-for-qr-scanning-android-app\">http:\/\/stackoverflow.com\/questions\/37685141\/nullpointerexception-with-zxing-library-for-qr-scanning-android-app<\/a><br \/>\n  <a href=\"http:\/\/stackoverflow.com\/questions\/37685141\/nullpointerexception-with-zxing-library-for-qr-scanning-android-app\">https:\/\/github.com\/journeyapps\/zxing-android-embedded<\/a><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>zxing\u3067QR\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\u308b\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001 \u7279\u5b9a\u306e\u7aef\u672b\u3060\u3051\u30ab\u30e1\u30e9\u8d77\u52d5\u6642\u306b\u3001 \u300cAndroid\u306e\u30ab\u30e1\u30e9\u306b\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u30c7\u30d0\u30a4\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u300d \u306a\u3093\u3058\u3083\u3053\u308a\u3083\u3002\u3002 \u8272\u3005\u691c\u8a3c\u3057\u3066\u307f\u308b\u3068A &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.4star.link\/?p=1820\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;zxing\u3067QR\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001AndroidOS6\u3060\u3051\u30ab\u30e1\u30e9\u8d77\u52d5\u6642\u306b\u30a8\u30e9\u30fc\u304c\u3067\u308b\u70b9\u89e3\u6c7a\u65b9\u6cd5&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,20,22,234],"tags":[17,335,34,337,336],"class_list":["post-1820","post","type-post","status-publish","format-standard","hentry","category-android","category-google-android","category-java","category-234","tag-android-2","tag-androidos6","tag-java-2","tag-qr","tag-zxing"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/posts\/1820"}],"collection":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1820"}],"version-history":[{"count":5,"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/posts\/1820\/revisions"}],"predecessor-version":[{"id":1825,"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/posts\/1820\/revisions\/1825"}],"wp:attachment":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}