{"id":10282,"date":"2019-10-16T22:09:06","date_gmt":"2019-10-16T14:09:06","guid":{"rendered":"https:\/\/mnya.tw\/cc\/?p=10282"},"modified":"2019-10-16T22:09:06","modified_gmt":"2019-10-16T14:09:06","slug":"1485","status":"publish","type":"post","link":"https:\/\/mnya.tw\/cc\/word\/1485.html","title":{"rendered":"Android Studio\uff1a\u9ede\u64ca Button \u5f8c\u8b80\u53d6 EditText \u4e26\u751f\u6210 QR Code"},"content":{"rendered":"<p>\u5982\u4f55\u5beb\u4e00\u500b\u7c21\u55ae\u751f\u6210 QR Code \u7684 Android APP \u5462\uff1f\u5176\u5be6\u53ea\u8981\u5f15\u7528 zxing.BarcodeFormat\u3001zxing.WriterException \u548c barcodescanner.BarcodeEncoder \u9019\u4e09\u500b\u5143\u4ef6\u5c31\u53ef\u4ee5\u505a\u5230\u5566\uff01\u4f48\u5c40\u4e0a\u6211\u5011\u53ea\u8981\u62c9\u4e00\u500b EditText \u7528\u4f86\u8f38\u5165\u8981\u8f49\u63db\u6210 QR Code \u7684\u6587\u5b57\uff0c\u518d\u62c9\u4e00\u500b Button \u7528\u4f86\u9ede\u64ca\u5f8c\u751f\u6210 QR Code\uff0c\u6700\u5f8c\u518d\u62c9\u4e00\u500b ImageView \u7528\u4f86\u986f\u793a\u751f\u6210\u7684 QR Code\uff0c\u9019\u6a23\u5c31\u5b8c\u6210\u4e00\u500b\u7c21\u55ae\u7684 QR Code \u751f\u6210 APP \u7684\u4f48\u5c40\u5566\uff01\u63a5\u8457\u5728 MainActivity \u5beb JAVA \u4e3b\u7a0b\u5f0f\u5c31\u641e\u5b9a\u5566\uff01\u63a5\u4e0b\u4f86\u8981\u4e00\u6b65\u6b65\u6559\u5927\u5bb6\u5beb\u51fa\u4f86\uff1a<\/p>\n<p>\u9996\u5148 build.gradle\uff08app\uff09\u5167\u8981\u5728 dependencies \u52a0\u4e0a\u4e0b\u9762\u9019\u4e00\u884c\u624d\u80fd\u904b\u4f5c\u5537\uff01<\/p>\n<pre class=\"line-numbers\"><code class=\"language-json\">implementation 'com.journeyapps:zxing-android-embedded:3.4.0'<\/code><\/pre>\n<p>\u63a5\u8457\u8981\u5230 activity_main.xml \u5167\u5beb\u4f48\u5c40\uff0c\u9019\u908a\u63d0\u4f9b XML \u7d66\u5927\u5bb6\uff1a<\/p>\n<pre class=\"line-numbers\"><code class=\"language-markup\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;RelativeLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:app=\"http:\/\/schemas.android.com\/apk\/res-auto\"\r\n    xmlns:tools=\"http:\/\/schemas.android.com\/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    tools:context=\".MainActivity\"&gt;\r\n\r\n    &lt;LinearLayout\r\n        android:id=\"@+id\/linear_layout_top\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_alignParentTop=\"true\"\r\n        android:layout_marginLeft=\"8dp\"\r\n        android:layout_marginTop=\"8dp\"\r\n        android:layout_marginRight=\"8dp\"\r\n        android:orientation=\"horizontal\"&gt;\r\n\r\n        &lt;EditText\r\n            android:id=\"@+id\/input\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_weight=\"1\"\r\n            android:autofillHints=\"\"\r\n            android:hint=\"@string\/input_hint\"\r\n            android:inputType=\"text\" \/&gt;\r\n\r\n        &lt;Button\r\n            android:id=\"@+id\/button_ok\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_marginStart=\"8dp\"\r\n            android:layout_weight=\"0\"\r\n            android:text=\"@android:string\/ok\" \/&gt;\r\n    &lt;\/LinearLayout&gt;\r\n\r\n    &lt;ImageView\r\n        android:id=\"@+id\/image_view\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        android:layout_below=\"@+id\/linear_layout_top\"\r\n        android:layout_margin=\"8dp\"\r\n        android:layout_marginStart=\"8dp\"\r\n        android:layout_marginEnd=\"8dp\"\r\n        android:contentDescription=\"@string\/qrcode\" \/&gt;\r\n\r\n&lt;\/RelativeLayout&gt;<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mnya.tw\/cc\/wp-content\/uploads\/2019\/1485-1.jpg\" width=\"1024\" height=\"768\" \/><br \/>\n\u25b2 \u8a2d\u8a08\u6a21\u5f0f\u4f86\u770b\u662f\u9577\u9019\u6a23\uff0c\u6700\u5916\u90e8\u7528 RelativeLayout \u7576\u4f5c\u4e3b\u6846\u67b6\u3002<\/p><div class=\"3a456c955cc9861673f62d33beb7714e\" data-index=\"2\" style=\"float: none; margin:0px;\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-2683739050533486\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-2683739050533486\"\r\n     data-ad-slot=\"3270345536\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n\n<p>\u63a5\u8457\u5230 MainActivity \u5beb JAVA \u4e3b\u7a0b\u5f0f\uff0c\u5148\u4f86\u770b\u770b\u622a\u5716\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mnya.tw\/cc\/wp-content\/uploads\/2019\/1485-2.jpg\" width=\"1024\" height=\"768\" \/><br \/>\n\u25b2 MainActivity \u5167\u7a0b\u5f0f\u78bc\u7684\u5b8c\u6574\u622a\u5716\uff0c\u53f3\u908a\u9644\u6a21\u64ec\u5668\u904b\u4f5c\u622a\u5716\u3002<\/p>\n<p>\u9996\u5148\u662f onCreate(Bundle savedInstanceState) \u7684\u7a0b\u5f0f\u78bc\uff1a<\/p>\n<pre class=\"line-numbers\"><code class=\"language-java\">Button button_ok = (Button) findViewById(R.id.button_ok);\r\nbutton_ok.setOnClickListener(btn_ok);<\/code><\/pre>\n<p>\u9019\u908a\u53ea\u662f\u653e\u4e0a\u6309\u9215\u76e3\u807d\u7684\u547c\u53eb\uff0c\u6240\u4ee5\u63a5\u4e0b\u4f86\u8981\u5beb\u6309\u9215\u9ede\u64ca\u8981\u505a\u4ec0\u9ebc\u7684\u7a0b\u5f0f\uff1a<\/p>\n<pre class=\"line-numbers\"><code class=\"language-java\">private Button.OnClickListener btn_ok = new Button.OnClickListener() {\r\n        @Override\r\n        public void onClick(View v) {\r\n\r\n            genCode(v);\r\n\r\n        }\r\n    };<\/code><\/pre>\n<p>\u597d\u5566\uff01\u6309\u9215\u9ede\u64ca\u5f8c\u6703\u53bb\u547c\u53eb genCode \u65b9\u6cd5\uff0c\u90a3\u63a5\u4e0b\u4f86\u5c31\u662f\u9019\u65b9\u6cd5\u7684\u7a0b\u5f0f\u78bc\uff1a<\/p>\n<pre class=\"line-numbers\"><code class=\"language-java\">public void genCode(View view) {\r\n        EditText input = (EditText) findViewById(R.id.input);\r\n        ImageView image_view = (ImageView) findViewById(R.id.image_view);\r\n        BarcodeEncoder encoder = new BarcodeEncoder();\r\n        try {\r\n            Bitmap bit = encoder.encodeBitmap(input.getText().toString(), BarcodeFormat.QR_CODE,\r\n                    250, 250);\r\n            image_view.setImageBitmap(bit);\r\n        } catch (WriterException e) {\r\n            e.printStackTrace();\r\n        }\r\n\r\n    }<\/code><\/pre>\n<p>\u9019\u6a23\u5c31\u53ef\u4ee5\u5c07 EditText \u5167\u7684\u6587\u5b57\u8b80\u53d6\u9032\u7a0b\u5f0f\u5167\u8f49\u6210 QR Code \u4e26\u8f38\u51fa\u5728 ImageView \u4e0a\u986f\u793a\u5566\uff01\u9019\u908a\u7684 250, 250\uff0c\u524d\u9762\u662f\u5bec\uff1b\u5f8c\u9762\u662f\u9ad8\uff0c\u7528\u4f86\u6c7a\u5b9a\u8f38\u51fa\u7684 QR Code \u6709\u591a\u5927\u5f35\uff0c\u9019\u500b\u5c31\u770b\u958b\u767c\u8005\u9700\u6c42\u800c\u5b9a\u56c9\uff01\ud83d\ude09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mnya.tw\/cc\/wp-content\/uploads\/2019\/1485-3.jpg\" width=\"864\" height=\"768\" \/><br \/>\n\u25b2 \u4e00\u4e9b\u5be6\u969b\u904b\u4f5c\u7684\u622a\u5716\u8207\u7bc4\u4f8b\uff0c\u4f9b\u5927\u5bb6\u89c0\u770b\u5be6\u969b\u904b\u4f5c\u7684\u6a23\u5b50\uff5e<\/p>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5beb\u4e00\u500b\u7c21\u55ae\u751f\u6210 QR Code \u7684 Android APP \u5462\uff1f\u5176\u5be6\u53ea\u8981\u5f15\u7528 zxing.BarcodeFormat\u3001zxing.WriterException \u548c barcodesc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10285,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,481,14,38,498,518],"tags":[519],"class_list":["post-10282","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-application","category-mobile-os","category-code","category-android","category-java","category-app-development","tag-android-studio"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Android Studio\uff1a\u9ede\u64ca Button \u5f8c\u8b80\u53d6 EditText \u4e26\u751f\u6210 QR Code - \u840c\u82bd\u7d9c\u5408\u5929\u5730 - \u840c\u82bd\u7db2\u9801<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mnya.tw\/cc\/word\/1485.html\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Studio\uff1a\u9ede\u64ca Button \u5f8c\u8b80\u53d6 EditText \u4e26\u751f\u6210 QR Code - \u840c\u82bd\u7d9c\u5408\u5929\u5730 - \u840c\u82bd\u7db2\u9801\" \/>\n<meta property=\"og:description\" content=\"\u5982\u4f55\u5beb\u4e00\u500b\u7c21\u55ae\u751f\u6210 QR Code \u7684 Android APP \u5462\uff1f\u5176\u5be6\u53ea\u8981\u5f15\u7528 zxing.BarcodeFormat\u3001zxing.WriterException \u548c barcodescanner. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mnya.tw\/cc\/word\/1485.html\" \/>\n<meta property=\"og:site_name\" content=\"\u840c\u82bd\u7d9c\u5408\u5929\u5730\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-16T14:09:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mnya.tw\/cc\/wp-content\/uploads\/2019\/1485-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u840c\u82bd\u7ad9\u9577\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/x.com\/qwe987299\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u840c\u82bd\u7ad9\u9577\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html\"},\"author\":{\"name\":\"\u840c\u82bd\u7ad9\u9577\",\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/#\\\/schema\\\/person\\\/28e9ae25bc418b8ec216b7aa2c848faa\"},\"headline\":\"Android Studio\uff1a\u9ede\u64ca Button \u5f8c\u8b80\u53d6 EditText \u4e26\u751f\u6210 QR Code\",\"datePublished\":\"2019-10-16T14:09:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html\"},\"wordCount\":52,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/wp-content\\\/uploads\\\/2019\\\/1485-2.jpg\",\"keywords\":[\"Android Studio\"],\"articleSection\":[\"\u8edf\u9ad4\u61c9\u7528\",\"\u884c\u52d5\u5e73\u53f0\",\"\u7a0b\u5f0f\u8a2d\u8a08\",\"Android\",\"JAVA\",\"APP\u958b\u767c\"],\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html\",\"url\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html\",\"name\":\"Android Studio\uff1a\u9ede\u64ca Button \u5f8c\u8b80\u53d6 EditText \u4e26\u751f\u6210 QR Code - \u840c\u82bd\u7d9c\u5408\u5929\u5730 - \u840c\u82bd\u7db2\u9801\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/wp-content\\\/uploads\\\/2019\\\/1485-2.jpg\",\"datePublished\":\"2019-10-16T14:09:06+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/#\\\/schema\\\/person\\\/28e9ae25bc418b8ec216b7aa2c848faa\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html#primaryimage\",\"url\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/wp-content\\\/uploads\\\/2019\\\/1485-2.jpg\",\"contentUrl\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/wp-content\\\/uploads\\\/2019\\\/1485-2.jpg\",\"width\":1024,\"height\":768},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/1485.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\\\/\\\/mnya.tw\\\/cc\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android Studio\uff1a\u9ede\u64ca Button \u5f8c\u8b80\u53d6 EditText \u4e26\u751f\u6210 QR Code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/#website\",\"url\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/\",\"name\":\"\u840c\u82bd\u7d9c\u5408\u5929\u5730\",\"description\":\"\u751f\u6d3b\u4f11\u9592\u2502\u96fb\u5b50\u8cc7\u8a0a\u2502\u5b78\u8853\u77e5\u8b58\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/#\\\/schema\\\/person\\\/28e9ae25bc418b8ec216b7aa2c848faa\",\"name\":\"\u840c\u82bd\u7ad9\u9577\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63875472a671bb4fd1e3a1012e8ef8bb9672b41d7810b61f508a42ad15ef16a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63875472a671bb4fd1e3a1012e8ef8bb9672b41d7810b61f508a42ad15ef16a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c63875472a671bb4fd1e3a1012e8ef8bb9672b41d7810b61f508a42ad15ef16a?s=96&d=mm&r=g\",\"caption\":\"\u840c\u82bd\u7ad9\u9577\"},\"description\":\"\u60a8\u597d\uff0c\u6211\u662f\u840c\u82bd\u7cfb\u5217\u7db2\u7ad9\uff08Mnya Series Website\uff09\u7684\u7ad9\u9577&amp;\u5275\u59cb\u4eba\uff0c\u53ef\u4ee5\u7a31\u547c\u6211\u300c\u840c\u82bd\u7ad9\u9577\u300d\u3002\u6211\u7684\u8208\u8da3\u8207\u5c08\u9577\u6709\u767b\u5c71\u3001\u89c0\u5bdf\u5730\u5f62\u3001\u651d\u5f71\u3001\u65c5\u904a\u3001\u7db2\u9801\u8a2d\u8a08\uff06\u67b6\u8a2d\uff06\u7d93\u71df\u3001\u52d5\u756b\u88fd\u4f5c\u3001\u5716\u7247\u8655\u7406\u3001\u8cc7\u6599\u5f59\u6574\u7b49\u3002\u6709\u4efb\u4f55\u554f\u984c\u6216\u5efa\u8b70\u8acb\u81f3\u840c\u82bd\u8ad6\u58c7\u767c\u8868\u3002\u7db2\u7ad9\u696d\u52d9\u3001\u5546\u696d\u5408\u4f5c\u7684\u806f\u7d61\u65b9\u5f0f\u5728\u300c\u95dc\u65bc\u672c\u7ad9 \u2192 \u5718\u968a\u4ecb\u7d39 \u2192 \u7ad9\u9577\u4ecb\u7d39\u300d\uff0c\u5f88\u9ad8\u8208\u8a8d\u8b58\u60a8\uff01\u8acb\u591a\u6307\u6559\uff01\",\"sameAs\":[\"https:\\\/\\\/mnya.tw\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/x.com\\\/qwe987299\"],\"url\":\"https:\\\/\\\/mnya.tw\\\/cc\\\/word\\\/author\\\/qwe987299\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android Studio\uff1a\u9ede\u64ca Button \u5f8c\u8b80\u53d6 EditText \u4e26\u751f\u6210 QR Code - \u840c\u82bd\u7d9c\u5408\u5929\u5730 - \u840c\u82bd\u7db2\u9801","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mnya.tw\/cc\/word\/1485.html","og_locale":"zh_TW","og_type":"article","og_title":"Android Studio\uff1a\u9ede\u64ca Button \u5f8c\u8b80\u53d6 EditText \u4e26\u751f\u6210 QR Code - \u840c\u82bd\u7d9c\u5408\u5929\u5730 - \u840c\u82bd\u7db2\u9801","og_description":"\u5982\u4f55\u5beb\u4e00\u500b\u7c21\u55ae\u751f\u6210 QR Code \u7684 Android APP \u5462\uff1f\u5176\u5be6\u53ea\u8981\u5f15\u7528 zxing.BarcodeFormat\u3001zxing.WriterException \u548c barcodescanner. [&hellip;]","og_url":"https:\/\/mnya.tw\/cc\/word\/1485.html","og_site_name":"\u840c\u82bd\u7d9c\u5408\u5929\u5730","article_published_time":"2019-10-16T14:09:06+00:00","og_image":[{"width":1024,"height":768,"url":"https:\/\/mnya.tw\/cc\/wp-content\/uploads\/2019\/1485-2.jpg","type":"image\/jpeg"}],"author":"\u840c\u82bd\u7ad9\u9577","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/x.com\/qwe987299","twitter_misc":{"\u4f5c\u8005:":"\u840c\u82bd\u7ad9\u9577","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"2 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mnya.tw\/cc\/word\/1485.html#article","isPartOf":{"@id":"https:\/\/mnya.tw\/cc\/word\/1485.html"},"author":{"name":"\u840c\u82bd\u7ad9\u9577","@id":"https:\/\/mnya.tw\/cc\/#\/schema\/person\/28e9ae25bc418b8ec216b7aa2c848faa"},"headline":"Android Studio\uff1a\u9ede\u64ca Button \u5f8c\u8b80\u53d6 EditText \u4e26\u751f\u6210 QR Code","datePublished":"2019-10-16T14:09:06+00:00","mainEntityOfPage":{"@id":"https:\/\/mnya.tw\/cc\/word\/1485.html"},"wordCount":52,"commentCount":0,"image":{"@id":"https:\/\/mnya.tw\/cc\/word\/1485.html#primaryimage"},"thumbnailUrl":"https:\/\/mnya.tw\/cc\/wp-content\/uploads\/2019\/1485-2.jpg","keywords":["Android Studio"],"articleSection":["\u8edf\u9ad4\u61c9\u7528","\u884c\u52d5\u5e73\u53f0","\u7a0b\u5f0f\u8a2d\u8a08","Android","JAVA","APP\u958b\u767c"],"inLanguage":"zh-TW","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mnya.tw\/cc\/word\/1485.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mnya.tw\/cc\/word\/1485.html","url":"https:\/\/mnya.tw\/cc\/word\/1485.html","name":"Android Studio\uff1a\u9ede\u64ca Button \u5f8c\u8b80\u53d6 EditText \u4e26\u751f\u6210 QR Code - \u840c\u82bd\u7d9c\u5408\u5929\u5730 - \u840c\u82bd\u7db2\u9801","isPartOf":{"@id":"https:\/\/mnya.tw\/cc\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mnya.tw\/cc\/word\/1485.html#primaryimage"},"image":{"@id":"https:\/\/mnya.tw\/cc\/word\/1485.html#primaryimage"},"thumbnailUrl":"https:\/\/mnya.tw\/cc\/wp-content\/uploads\/2019\/1485-2.jpg","datePublished":"2019-10-16T14:09:06+00:00","author":{"@id":"https:\/\/mnya.tw\/cc\/#\/schema\/person\/28e9ae25bc418b8ec216b7aa2c848faa"},"breadcrumb":{"@id":"https:\/\/mnya.tw\/cc\/word\/1485.html#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mnya.tw\/cc\/word\/1485.html"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/mnya.tw\/cc\/word\/1485.html#primaryimage","url":"https:\/\/mnya.tw\/cc\/wp-content\/uploads\/2019\/1485-2.jpg","contentUrl":"https:\/\/mnya.tw\/cc\/wp-content\/uploads\/2019\/1485-2.jpg","width":1024,"height":768},{"@type":"BreadcrumbList","@id":"https:\/\/mnya.tw\/cc\/word\/1485.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/mnya.tw\/cc"},{"@type":"ListItem","position":2,"name":"Android Studio\uff1a\u9ede\u64ca Button \u5f8c\u8b80\u53d6 EditText \u4e26\u751f\u6210 QR Code"}]},{"@type":"WebSite","@id":"https:\/\/mnya.tw\/cc\/#website","url":"https:\/\/mnya.tw\/cc\/","name":"\u840c\u82bd\u7d9c\u5408\u5929\u5730","description":"\u751f\u6d3b\u4f11\u9592\u2502\u96fb\u5b50\u8cc7\u8a0a\u2502\u5b78\u8853\u77e5\u8b58","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mnya.tw\/cc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Person","@id":"https:\/\/mnya.tw\/cc\/#\/schema\/person\/28e9ae25bc418b8ec216b7aa2c848faa","name":"\u840c\u82bd\u7ad9\u9577","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/secure.gravatar.com\/avatar\/c63875472a671bb4fd1e3a1012e8ef8bb9672b41d7810b61f508a42ad15ef16a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c63875472a671bb4fd1e3a1012e8ef8bb9672b41d7810b61f508a42ad15ef16a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c63875472a671bb4fd1e3a1012e8ef8bb9672b41d7810b61f508a42ad15ef16a?s=96&d=mm&r=g","caption":"\u840c\u82bd\u7ad9\u9577"},"description":"\u60a8\u597d\uff0c\u6211\u662f\u840c\u82bd\u7cfb\u5217\u7db2\u7ad9\uff08Mnya Series Website\uff09\u7684\u7ad9\u9577&amp;\u5275\u59cb\u4eba\uff0c\u53ef\u4ee5\u7a31\u547c\u6211\u300c\u840c\u82bd\u7ad9\u9577\u300d\u3002\u6211\u7684\u8208\u8da3\u8207\u5c08\u9577\u6709\u767b\u5c71\u3001\u89c0\u5bdf\u5730\u5f62\u3001\u651d\u5f71\u3001\u65c5\u904a\u3001\u7db2\u9801\u8a2d\u8a08\uff06\u67b6\u8a2d\uff06\u7d93\u71df\u3001\u52d5\u756b\u88fd\u4f5c\u3001\u5716\u7247\u8655\u7406\u3001\u8cc7\u6599\u5f59\u6574\u7b49\u3002\u6709\u4efb\u4f55\u554f\u984c\u6216\u5efa\u8b70\u8acb\u81f3\u840c\u82bd\u8ad6\u58c7\u767c\u8868\u3002\u7db2\u7ad9\u696d\u52d9\u3001\u5546\u696d\u5408\u4f5c\u7684\u806f\u7d61\u65b9\u5f0f\u5728\u300c\u95dc\u65bc\u672c\u7ad9 \u2192 \u5718\u968a\u4ecb\u7d39 \u2192 \u7ad9\u9577\u4ecb\u7d39\u300d\uff0c\u5f88\u9ad8\u8208\u8a8d\u8b58\u60a8\uff01\u8acb\u591a\u6307\u6559\uff01","sameAs":["https:\/\/mnya.tw\/","https:\/\/x.com\/https:\/\/x.com\/qwe987299"],"url":"https:\/\/mnya.tw\/cc\/word\/author\/qwe987299"}]}},"_links":{"self":[{"href":"https:\/\/mnya.tw\/cc\/wp-json\/wp\/v2\/posts\/10282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mnya.tw\/cc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mnya.tw\/cc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mnya.tw\/cc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mnya.tw\/cc\/wp-json\/wp\/v2\/comments?post=10282"}],"version-history":[{"count":0,"href":"https:\/\/mnya.tw\/cc\/wp-json\/wp\/v2\/posts\/10282\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mnya.tw\/cc\/wp-json\/wp\/v2\/media\/10285"}],"wp:attachment":[{"href":"https:\/\/mnya.tw\/cc\/wp-json\/wp\/v2\/media?parent=10282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mnya.tw\/cc\/wp-json\/wp\/v2\/categories?post=10282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mnya.tw\/cc\/wp-json\/wp\/v2\/tags?post=10282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}