zxing

Generate ean13 barcode with Zxing library which shows code number below it Android

浪尽此生 提交于 2020-01-02 04:37:08
问题 I'm using Zxing library to generate a barcode bitmap from a String numeric code with this code: public Bitmap encodeAsBitmap(String contents, BarcodeFormat format, int img_width, int img_height) throws WriterException { String contentsToEncode = contents; if (contentsToEncode == null) { return null; } Map<EncodeHintType, Object> hints = null; String encoding = guessAppropriateEncoding(contentsToEncode); if (encoding != null) { hints = new EnumMap<EncodeHintType, Object>(EncodeHintType.class);

ZXING Android Embedded Usage of IntentIntegrator

 ̄綄美尐妖づ 提交于 2020-01-02 00:33:26
问题 I am new to Android development and still trying to get the grasp of some of the concepts. I find the best way to learn is to jump right into the deep end with a project. With that said, here is my question: I have integrated ZXing Android Embedded into my application; however, I am having trouble understanding the way in which you use IntentIntegrator. All I am trying to do at the moment is call the QR scanner to the screen when the user taps a button. I have been trying to follow the

ZXING Android Embedded Usage of IntentIntegrator

旧街凉风 提交于 2020-01-02 00:33:08
问题 I am new to Android development and still trying to get the grasp of some of the concepts. I find the best way to learn is to jump right into the deep end with a project. With that said, here is my question: I have integrated ZXing Android Embedded into my application; however, I am having trouble understanding the way in which you use IntentIntegrator. All I am trying to do at the moment is call the QR scanner to the screen when the user taps a button. I have been trying to follow the

Obtaining QR scan results via ZXing that is integrated into your app

老子叫甜甜 提交于 2020-01-01 19:15:04
问题 I used this answer to create a standalone Android library project that has the ZXing source code in it (ZXing v2.1). It compiles fine and if I run CaptureActivity, I can read a QR code as expected. I have another Android project from which I want to pull in this library. I have set that library relationship up correctly. The issue I am having is, how do I launch my local copy of the ZXing scanner via IntentIntegrator (mentioned here). I tried modifying the IntentIntegrator.initiateScan()

How to integrate ZXing api with front camera in android? [closed]

偶尔善良 提交于 2020-01-01 09:16:29
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I just wanted to integrate ZXing API in my android app, but cant find the proper documentation. 回答1: Follow these steps: 1) Download the source code here: http://code.google.com/p/zxing/source/checkout 2) Import

How to integrate ZXing api with front camera in android? [closed]

╄→гoц情女王★ 提交于 2020-01-01 09:15:14
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I just wanted to integrate ZXing API in my android app, but cant find the proper documentation. 回答1: Follow these steps: 1) Download the source code here: http://code.google.com/p/zxing/source/checkout 2) Import

Android Barcode scanner using Zxing

◇◆丶佛笑我妖孽 提交于 2019-12-31 03:04:51
问题 I want to integrate Zxing in a android project (I'm a beginner). I have seen that the way described here http://bit.ly/nBszrL is discouraged and that the best way to do it is through Intents as said in this post http://bit.ly/o29Uma p.s : I don't want the barcode scanner installed on my device I have Included on my project the required class : http://bit.ly/16pKMKx my test code : package com.example.barcodescanner; import android.os.Bundle; import android.app.Activity; import android.content

Java 生成二维码

泄露秘密 提交于 2019-12-30 15:01:18
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 利用Google zxing生成二维码 1. maven依赖,maven只需引入javase模块就行,core模块会自动依赖导入 <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.3.0</version> </dependency> <dependency> <groupId>com.google.zxing</groupId> <artifactId>javase</artifactId> <version>3.3.0</version> </dependency> 2. 使用示例 public class QRCodeUtils { public static byte[] qrCode(String text, int width, int height) throws WriterException, IOException { QRCodeWriter qrCodeWriter = new QRCodeWriter(); BitMatrix bitMatrix = qrCodeWriter.encode(text, BarcodeFormat.QR_CODE, width

How to add buttons in Zxing Scanner Camera View

眉间皱痕 提交于 2019-12-30 07:19:08
问题 my current Zxing scanner screen looks like this, I want to add a textview and couple of buttons on it, I had tried many procedures but nothing worked can anyone guide me, I will be humbly looking forward for your kind help here's the Code Java file: private ZXingScannerView mScannerView; @Override public void onCreate(Bundle state) { super.onCreate(state); setContentView(R.layout.activity_qrresult); mScannerView = new ZXingScannerView(this); setContentView(mScannerView); } @Override public

ZXingObjc - Converting object c to swift

ε祈祈猫儿з 提交于 2019-12-30 07:09:05
问题 I'm a newbie with Ios. i'm learning swift and overlooked object c. Currently, i'm writing an demo with swift and xcode 6.1 which can scan qrcode and barcode from camera or an image from image library. before, i tried using zbar SDK to do this, but it happened error and i didn't know how to fix it, i posted this error in post: Scan qrcode and barcode from camera and image which picked from image library in swift , but nobody answered. i'm trying using ZXingObjC to scan qrcode and barcode from