Integrating Zxing Barcode scanner to my android app

manish reddy

I'm trying to integrate barcode scanner in my android app.

These are the things i have done:

1) i added core-3.2.1 module to my project. 2) added an activity

<uses-permission android:name="android.permission.CAMERA" />
<activity
android:name="com.google.zxing.client.android.CaptureActivity"
android:screenOrientation="landscape" >
</activity>

I'm getting that Cannot resolve symbol 'CaptureActivity'. What should i do more?

I have checked other stackoverflow posts but i'm unable to fix this.

Mithun Sarker Shuvro

You can add zxing library to your app via gradle dependency

just add this to your build.gradle file

compile 'com.google.zxing:core:3.2.1'
compile 'com.journeyapps:zxing-android-embedded:3.0.3@aar'

Now in your onCreate method of your activity , do the following

 IntentIntegrator scanIntegrator = new IntentIntegrator(MainActivity.this);
 scanIntegrator.setPrompt("Scan a Barcode");
 scanIntegrator.setBeepEnabled(true); 
 scanIntegrator.setOrientationLocked(true);
 scanIntegrator.setBarcodeImageEnabled(true);
 scanIntegrator.initiateScan();

You can find a sample project here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to integrate Zxing Barcode Scanner without installing the actual zxing app (cannot resolve symbol: .android.CaptureActivity)?

From Dev

Android Zxing Barcode Scanner is not scanning correctly

From Dev

ZXing barcode scanner for .NET

From Dev

Error while using zxing scanner on my android app

From Dev

Integrating QR scanner to Android app

From Dev

Add an embedded barcode scanner onto fragment into my app via android studio

From Dev

scan the barcode reader data using zxing in android app

From Dev

Unable to get result from ZXing barcode scanner

From Dev

ZXing barcode scanner in custom layout in fragment

From Dev

Barcode Scanner for Rails App

From Dev

Error using ZXing barcode scanner via intent from my custom camera view

From Dev

Core.jar not in Zxing Core folder? - Zxing Barcode Scanner

From Dev

Honeywell android Barcode scanner

From Dev

Zxing scanner Android Studio

From Dev

Size of generated barcode zxing android

From Dev

Unable to start actvity componentinfo - android app barcode scanner

From Dev

Integrating Google Fonts into my Android app

From Dev

Having trouble integrating Facebook into my android app

From Dev

With Zxing retiring for iOS, which barcode-scanner to switch to?

From Dev

ZXing Barcode Scanner Intent: set DecodeHintType.ASSUME_GS1

From Dev

ZXing Barcode Scanner WinRT can't start StartPreviewAsync()

From Dev

How to Customize the capture screen border of zxing barcode scanner from ViewFinder

From Dev

ZXing Barcode Scanner WinRT can't start StartPreviewAsync()

From Dev

creating barcode scanner with zxing source code and core java

From Dev

Smartphone Android with integrated barcode scanner

From Dev

Mobile barcode scanner for iOS/Android

From Dev

Phonegap , Barcode Scanner not working on android

From Dev

How can I use native Android Camera App to read barcode/qrcode (no ZXing)?

From Dev

Android Generate QR code and Barcode using Zxing

Related Related

  1. 1

    How to integrate Zxing Barcode Scanner without installing the actual zxing app (cannot resolve symbol: .android.CaptureActivity)?

  2. 2

    Android Zxing Barcode Scanner is not scanning correctly

  3. 3

    ZXing barcode scanner for .NET

  4. 4

    Error while using zxing scanner on my android app

  5. 5

    Integrating QR scanner to Android app

  6. 6

    Add an embedded barcode scanner onto fragment into my app via android studio

  7. 7

    scan the barcode reader data using zxing in android app

  8. 8

    Unable to get result from ZXing barcode scanner

  9. 9

    ZXing barcode scanner in custom layout in fragment

  10. 10

    Barcode Scanner for Rails App

  11. 11

    Error using ZXing barcode scanner via intent from my custom camera view

  12. 12

    Core.jar not in Zxing Core folder? - Zxing Barcode Scanner

  13. 13

    Honeywell android Barcode scanner

  14. 14

    Zxing scanner Android Studio

  15. 15

    Size of generated barcode zxing android

  16. 16

    Unable to start actvity componentinfo - android app barcode scanner

  17. 17

    Integrating Google Fonts into my Android app

  18. 18

    Having trouble integrating Facebook into my android app

  19. 19

    With Zxing retiring for iOS, which barcode-scanner to switch to?

  20. 20

    ZXing Barcode Scanner Intent: set DecodeHintType.ASSUME_GS1

  21. 21

    ZXing Barcode Scanner WinRT can't start StartPreviewAsync()

  22. 22

    How to Customize the capture screen border of zxing barcode scanner from ViewFinder

  23. 23

    ZXing Barcode Scanner WinRT can't start StartPreviewAsync()

  24. 24

    creating barcode scanner with zxing source code and core java

  25. 25

    Smartphone Android with integrated barcode scanner

  26. 26

    Mobile barcode scanner for iOS/Android

  27. 27

    Phonegap , Barcode Scanner not working on android

  28. 28

    How can I use native Android Camera App to read barcode/qrcode (no ZXing)?

  29. 29

    Android Generate QR code and Barcode using Zxing

HotTag

Archive