creating barcode scanner with zxing source code and core java

Tahmid Rahman

I am assigned to create a barcode scanner which wont make user install any third party app.

My ADT is Android Studio 2.0, SDK 24.4.1, jdk edition 8.

My target was to copy the zxing source and keep it with my app source and copy the core to the libs folder of zxing source. Then in the MainActivity of my app source I called CaptureActivity from Zxing package to create the app. It is not working & now I am confused...

Those what I did...

  1. I created a project named "BarcodeScanner" and with a blank activity.
  2. I downloaded zxing barcode scanner source code 4.7.5 zip file and after extraction I copied it to the project as a directory. (Note: It is a different package, different than my app package)
  3. Everything seems ok, no error. Then I downloaded core-3.2.1.jar to the libs folder, created library dependency of the app on the core and built the project and core is compiled.
  4. Everything ok but ONE SINGLE PROBLEM when in case of MainActivity of my BarcodeScanner app project when I go to set CaptureActivity as onClick action of button of MainActivity Layout, CaptureActivity class cannot be found as it is not in the core.

Is there any way to work with zxing library in Android Studio??? It kept me stuck for days...

Hitesh Sahu

Use this version of zxing instead

https://github.com/journeyapps/zxing-android-embedded

  • it have capture activity merged in actual project.
  • Integration is easier than actual zxing project.
  • Library size is small so it will reduce overall apk size.
  • No need to get confused between which jar to add, only jar dependency is core 3.2 library which you can get from here .
  • If you are using eclipse you can get eclipse version here

https://github.com/hiteshsahu/XZing-Barcode-Scanner-Minified-Eclipse

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

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

From Dev

ZXing barcode scanner for .NET

From Dev

Unable to get result from ZXing barcode scanner

From Dev

ZXing barcode scanner in custom layout in fragment

From Dev

Android Zxing Barcode Scanner is not scanning correctly

From Dev

Integrating Zxing Barcode scanner to my android app

From Dev

ZXing QR Code/Barcode scanning

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

Android Generate QR code and Barcode using Zxing

From Dev

scanning more than one barcode with zxing in java

From Dev

scanning more than one barcode with zxing in java

From Dev

Writing Barcode content as label below the Barcode using Java Zxing API

From Dev

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

From Dev

Unity Zxing QR code scanner integration

From Dev

Implement Realtime Barcode Scanner on Windows Phone 8.1 Runtime using ZXing and MFT

From Dev

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

From Dev

barcode scanner intent launches but cannot scan qr code?

From Dev

How to use ZXing bar code scanner in both landscape and portrait in android

From Dev

After some time barcode scanner throws java.lang.UnsatisfiedLinkError

From Dev

Barcode Scanner for Rails App

From Dev

Barcode scanner for PhoneGap/cordova

From Dev

Honeywell android Barcode scanner

From Dev

Winforms keypress and barcode scanner

From Dev

Xamarin forms Barcode Scanner

From Dev

Barcode Scanner in Fragment

Related Related

  1. 1

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

  2. 2

    ZXing barcode scanner for .NET

  3. 3

    Unable to get result from ZXing barcode scanner

  4. 4

    ZXing barcode scanner in custom layout in fragment

  5. 5

    Android Zxing Barcode Scanner is not scanning correctly

  6. 6

    Integrating Zxing Barcode scanner to my android app

  7. 7

    ZXing QR Code/Barcode scanning

  8. 8

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

  9. 9

    ZXing Barcode Scanner Intent: set DecodeHintType.ASSUME_GS1

  10. 10

    ZXing Barcode Scanner WinRT can't start StartPreviewAsync()

  11. 11

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

  12. 12

    ZXing Barcode Scanner WinRT can't start StartPreviewAsync()

  13. 13

    Android Generate QR code and Barcode using Zxing

  14. 14

    scanning more than one barcode with zxing in java

  15. 15

    scanning more than one barcode with zxing in java

  16. 16

    Writing Barcode content as label below the Barcode using Java Zxing API

  17. 17

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

  18. 18

    Unity Zxing QR code scanner integration

  19. 19

    Implement Realtime Barcode Scanner on Windows Phone 8.1 Runtime using ZXing and MFT

  20. 20

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

  21. 21

    barcode scanner intent launches but cannot scan qr code?

  22. 22

    How to use ZXing bar code scanner in both landscape and portrait in android

  23. 23

    After some time barcode scanner throws java.lang.UnsatisfiedLinkError

  24. 24

    Barcode Scanner for Rails App

  25. 25

    Barcode scanner for PhoneGap/cordova

  26. 26

    Honeywell android Barcode scanner

  27. 27

    Winforms keypress and barcode scanner

  28. 28

    Xamarin forms Barcode Scanner

  29. 29

    Barcode Scanner in Fragment

HotTag

Archive