zxing

zxing is generating a QR code instead of a Bar Code

泄露秘密 提交于 2019-12-08 12:52:30
I am using zxing 2.0. I'm trying to create a Bar code, but instead it's creating a QR code. Here's what I'm using: Context context = getActivity(); Intent intent = new Intent(context, EncodeActivity.class); intent.setAction(Intents.Encode.ACTION); intent.putExtra(Intents.Encode.TYPE, Contents.Type.TEXT); intent.putExtra(Intents.Encode.DATA, "12345678901"); intent.putExtra(Intents.Encode.FORMAT, BarcodeFormat.UPC_A); startActivity(intent); Instead of intent.putExtra(Intents.Encode.FORMAT, BarcodeFormat.UPC_A); and all the other intent.putExtra(Intents.Encode.* try Context context = getActivity(

Unable To Resolve Exception Class: ZXing

╄→尐↘猪︶ㄣ 提交于 2019-12-08 10:32:36
问题 I have a project that runs perfectly fine on newer devices and API levels, however, I'm getting some issues on emulators. When I load up the application on an emulator, I get this issue: 02-22 18:36:11.584: W/dalvikvm(652): VFY: unable to resolve exception class 872 (Lcom/google/zxing/WriterException;) 02-22 18:36:11.584: W/dalvikvm(652): VFY: unable to find exception handler at addr 0x7da 02-22 18:36:11.584: W/dalvikvm(652): VFY: rejected Lcom/example/myapp/Card;.getFrontView (Landroid

Encoding and decoding random byte array with zxing

流过昼夜 提交于 2019-12-08 09:09:19
问题 I'm trying to transfer a byte array with QR code, so for testing, I decided to generate a random byte array, encode it as QR code, then decode it. I used ISO-8859-1 to convert byte array to string s.t it does not lose data while transmission: For encoder side: byte []buffer = new byte[11]; com.google.zxing.Writer writer = new QRCodeWriter(); Random randomGenerator = new Random(); for(int i=0;i<=10;i++){ buffer[i]=(byte) randomGenerator.nextInt(254); } // Log.i("time1","original: "+Arrays

How to generate QR code using Zxing Library?

别等时光非礼了梦想. 提交于 2019-12-08 09:00:45
问题 I am trying to generate Qr code for my App. The user will enter some text an the the data will be passed to next activity which will display the QR code. Here is my code. public class QRgenerator extends AppCompatActivity { ImageView imageView; String Qrcode; public static final int WIDTH = 500; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_qrgenerator); getID(); Intent intent = getIntent(); Qrcode = intent

Generating QR code on Windows Phone 7.1 using ZXing 2.0 C# Port

╄→гoц情女王★ 提交于 2019-12-08 07:42:57
问题 I'm having trouble generating a QR code on mango 7.1 with ZXing 2.0. It should be pretty straight forward, but it's not working. The code: QRCodeWriter writer = new QRCodeWriter(); var bMatrix = writer.encode("Hey dude, QR FTW!", BarcodeFormat.QR_CODE, 25, 25); var asBitmap = bMatrix.ToBitmap(); image1.Source = asBitmap; image1 comes from the xaml. bMatrix seems to contain the data that I need, but image1 never shows a thing. 回答1: So I managed to do a workaround. I'm not sure if my original

How to call scanned barcode history from zxing

天涯浪子 提交于 2019-12-08 07:02:22
问题 I am scanning barcodes using Zxing in my application i have a button called History onclick it should display scanned barcode history i dont know how to call history from zxing. 回答1: If by Zxing, you mean you are using the library (not the zxing client app) to scan QR codes then you will have to implement the history related functionality on your own. Basically save items in the database base each time you have successfully scanned something. Take a look at the implementation of history

Scanning Barcodes (ZXing) in a own Thread and displaying a ProgessDialog

风格不统一 提交于 2019-12-08 06:32:01
问题 since I know this side most of my questions have been answered be using the search. But this seems to be a special one. I am new to Google Android development, so I want to learn by doing. I want to create an app, that scans barcodes and displays a list of possible products. I am using ZXing (got this from here! ;)) to scan the barcdes. Works perfect. I'm quering the google shopping api with the scanned barcode and get parse the rss feed, since there is a result (but in most cases there is ^^

Not able to convert Zxing into portrait mode in android

有些话、适合烂在心里 提交于 2019-12-08 04:26:31
问题 I have followed the following answer to do this. https://stackoverflow.com/a/16252917/2747591 But I am not getting what i want to do. The image captured by camera is rotated by 90 degree while i am trying to scan. Like if you are clicking a photo of a person using the camera, then in my phone screen it is showing the preview rotated by 90 degree. But that is not what i want as it is making bar code scanning difficult to use. I want preview as it should be. Any ideas? Here are my changes in

QR-encode a String to Image in Android project using zxing

我的梦境 提交于 2019-12-08 04:21:56
问题 I am trying to create a simple Android app, which would display a QR-coded image - by using zxing library. So I have installed HomeBrew , ant and maven at my Mac OS Yosemite notebook and pointed the ANDROID_HOME environment variable to the location of Android SDK. Then I have checked out latest zxing from GitHub and built it (seeming without any errors) with the command mvn package (and using javac version 1.8.0_45). After that I have created a new Android project with blank Activity in

build library ZXing for android project

醉酒当歌 提交于 2019-12-08 03:39:46
问题 hi i want to make QR code scanner to my android app using ZXing library i already success try it with "Scanning via Intent" method before now i try different approach my problem is i always get this error my step 1. download zxing master from here 2. download jar from repository here 3. import ‘android’ folder from zxing-master in eclipse 4. create libs folder and copy core.jar in there 5. right click in CaptureActivity - properties - java build path - library tab - add core.jar path i don't