B4A Library MaterialBarcodeScanner (Uses Google Mobile Vision API)

This is a wrap for this github project.

Easy to use barcode reader for your Android Project (Uses Google Mobile Vision API)
  • Integrate in a few minutes
  • Quick and simple api
  • No external apps required
  • Uses Google Mobile Vision API (fast scanning, local)
  • Automatically parses QR Codes, Data Matrix, PDF-417, and Aztec values
  • Supports 1D barcodes: EAN-13, EAN-8, UPC-A, UPC-E, Code-39, Code-93, Code-128, ITF, Codabar
  • Supports 2D barcodes: QR Code, Data Matrix, PDF-417, Aztec

MaterialBarcodeScanner
Author:
DonManfred (wrapper)
Version: 1
  • BarcodeScanner
    Methods:
    • Initialize (EventName As String)
    • IsInitialized As Boolean
    • startScan
      Start a scan for a barcode

      This opens a new activity with the parameters provided by the MaterialBarcodeScannerBuilder
  • BarcodeScannerBuilder
    Events:
    • onResult (barcode As String)
    Methods:
    • BleepEnabled (enabled As Boolean) As MaterialBarcodeScannerBuilderWrapper
      Enables or disables a bleep sound whenever a barcode is scanned
    • CameraFacing (cameraFacing As Int) As MaterialBarcodeScannerBuilderWrapper
      Either CameraSource.CAMERA_FACING_FRONT or CameraSource.CAMERA_FACING_BACK
      cameraFacing:
    • EnableAutoFocus (enabled As Boolean) As MaterialBarcodeScannerBuilderWrapper
      Enables or disables auto focusing on the camera
    • FlashLightEnabledByDefault As MaterialBarcodeScannerBuilderWrapper
      Shows a text message at the top of the barcode scanner
    • Initialize (EventName As String) As MaterialBarcodeScannerBuilderWrapper
    • IsInitialized As Boolean
    • Text (text As String) As MaterialBarcodeScannerBuilderWrapper
      Shows a text message at the top of the barcode scanner
    • TrackerColor (color As Int) As MaterialBarcodeScannerBuilderWrapper
      Sets the tracker color used by the barcode scanner, By default this is Material Red 500 (#F44336).
      color:
    • build As MaterialBarcodeScanner
      Build a ready to use MaterialBarcodeScanner
      Return type: @return:A ready to use MaterialBarcodeScanner
    • withBackfacingCamera As MaterialBarcodeScannerBuilderWrapper
      Makes the barcode scanner use the camera facing back
    • withFrontfacingCamera As MaterialBarcodeScannerBuilderWrapper
      Makes the barcode scanner use camera facing front

ATTENTION:
- You need to have google-play-services.jar in your additional libs folder
- You need to have android-support-v4.jar in your additional libs folder
- You need to have android-support-v7-appcompat..jar in your additional ibs folder. Especially the app must be prepared to use AppCompat. So follow the apcmpat tutorial.

I´ve used Example1 of the AppCompat-Tutorials and used the Button in the layout to trigger a Barcodescan

See it in action
 

Attachments

  • MaterialBarcodeEx.zip
    34.6 KB · Views: 1,048
  • MaterialBarcodelibfiles1.0.0.zip
    84.1 KB · Views: 988
  • MaterialBarcodeScannerV1.5.zip
    88.2 KB · Views: 845
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Tried a Samsung 8" Tablet (SM-T335). It does not recognize a barcode here. No crash but no detection.
 

Johan Schoeman

Expert
Licensed User
Longtime User
Tried a Samsung 12,1" Tablet (SM-P900). Works fine.
Works perfectly on my 7" Samsumg GT-P3100 with Android 4.0.4 with the change that I have made as per post #20
Also now working on my Samsung S4 mini with KitKat
 

Wolli013

Well-Known Member
Licensed User
Longtime User
Samsung S3 work fine with

<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat"/>

<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>

<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

</resources>

Samsung4 Tab not work, not Autofocus!
 

Douglas Farias

Expert
Licensed User
Longtime User
hi @DonManfred
i will test this lib on my new project, if works fine i will donate for u, very good work.
You know what the minSdkVersion of this lib?

thx
 

Johan Schoeman

Expert
Licensed User
Longtime User

incendio

Well-Known Member
Licensed User
Longtime User
Is this lib need to run with appcompat?

I tried without it, my codes only like these
B4X:
Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("b4a4lay1")
End Sub

Layout is from this example. I have google-play-services.jar, android-support-v4.jar & android-support-v7-appcompat.jar in my Lib folder.
Libraries are Core & MaterialBarcodeScanner ver 1.00, got these error.

B4A version: 5.80
Parsing code. (0.00s)
Compiling code. (0.02s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.01s)
Generating R file. (0.04s)
Compiling generated Java code. (1.13s)
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.android.dx.ssa.back.SsaToRop.convertBasicBlock(SsaToRop.java:322)
at com.android.dx.ssa.back.SsaToRop.convertBasicBlocks(SsaToRop.java:259)
at com.android.dx.ssa.back.SsaToRop.convert(SsaToRop.java:123)
at com.android.dx.ssa.back.SsaToRop.convertToRopMethod(SsaToRop.java:69)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:101)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:299)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:139)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:94)
at com.android.dx.command.dexer.Main.processClass(Main.java:613)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
at com.android.dx.command.dexer.Main.access$2(Main.java:546)
at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:537)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
at com.android.dx.command.dexer.Main.run(Main.java:206)
at com.android.dx.command.dexer.Main.main(Main.java:179)
at com.android.dx.command.Main.main(Main.java:103)
 

gregbug

Member
Licensed User
Longtime User
sorry guys for my stupid question, but i'm trying to compile the demo....

i got several error (for appcompact) and i solved (i think)

now when i try to compile i get this error..

B4X:
B4A version: 6.00
Parsing code.    (0.00s)
Compiling code.    (0.02s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (1.00s)
Generating R file.    Error
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:28: error: Attribute "title" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:29: error: Attribute "height" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:31: error: Attribute "isLightTheme" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:43: error: Attribute "windowActionBar" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:46: error: Attribute "windowNoTitle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:51: error: Attribute "windowActionBarOverlay" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:55: error: Attribute "windowActionModeOverlay" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:60: error: Attribute "windowFixedWidthMajor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:64: error: Attribute "windowFixedHeightMinor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:69: error: Attribute "windowFixedWidthMinor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:73: error: Attribute "windowFixedHeightMajor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:79: error: Attribute "windowMinWidthMajor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:84: error: Attribute "windowMinWidthMinor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:94: error: Attribute "actionBarTabStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:95: error: Attribute "actionBarTabBarStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:96: error: Attribute "actionBarTabTextStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:97: error: Attribute "actionOverflowButtonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:98: error: Attribute "actionOverflowMenuStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:101: error: Attribute "actionBarPopupTheme" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:103: error: Attribute "actionBarStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:108: error: Attribute "actionBarSplitStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:112: error: Attribute "actionBarTheme" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:120: error: Attribute "actionBarWidgetTheme" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:123: error: Attribute "actionBarSize" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:127: error: Attribute "actionBarDivider" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:129: error: Attribute "actionBarItemBackground" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:132: error: Attribute "actionMenuTextAppearance" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:135: error: Attribute "actionMenuTextColor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:142: error: Attribute "actionModeStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:143: error: Attribute "actionModeCloseButtonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:145: error: Attribute "actionModeBackground" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:147: error: Attribute "actionModeSplitBackground" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:149: error: Attribute "actionModeCloseDrawable" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:151: error: Attribute "actionModeCutDrawable" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:153: error: Attribute "actionModeCopyDrawable" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:155: error: Attribute "actionModePasteDrawable" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:157: error: Attribute "actionModeSelectAllDrawable" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:159: error: Attribute "actionModeShareDrawable" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:161: error: Attribute "actionModeFindDrawable" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:163: error: Attribute "actionModeWebSearchDrawable" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:166: error: Attribute "actionModePopupWindowStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:174: error: Attribute "textAppearanceLargePopupMenu" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:176: error: Attribute "textAppearanceSmallPopupMenu" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:185: error: Attribute "dialogTheme" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:187: error: Attribute "dialogPreferredPadding" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:189: error: Attribute "listDividerAlertDialog" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:197: error: Attribute "actionDropDownStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:199: error: Attribute "dropdownListPreferredItemHeight" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:201: error: Attribute "spinnerDropDownItemStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:203: error: Attribute "homeAsUpIndicator" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:206: error: Attribute "actionButtonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:209: error: Attribute "buttonBarStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:211: error: Attribute "buttonBarButtonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:215: error: Attribute "selectableItemBackground" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:217: error: Attribute "selectableItemBackgroundBorderless" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:219: error: Attribute "borderlessButtonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:221: error: Attribute "dividerVertical" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:223: error: Attribute "dividerHorizontal" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:225: error: Attribute "activityChooserViewStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:228: error: Attribute "toolbarStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:230: error: Attribute "toolbarNavigationButtonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:233: error: Attribute "popupMenuStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:235: error: Attribute "popupWindowStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:238: error: Attribute "editTextColor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:240: error: Attribute "editTextBackground" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:243: error: Attribute "imageButtonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:250: error: Attribute "textAppearanceSearchResultTitle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:252: error: Attribute "textAppearanceSearchResultSubtitle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:254: error: Attribute "textColorSearchUrl" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:256: error: Attribute "searchViewStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:264: error: Attribute "listPreferredItemHeight" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:266: error: Attribute "listPreferredItemHeightSmall" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:268: error: Attribute "listPreferredItemHeightLarge" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:271: error: Attribute "listPreferredItemPaddingLeft" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:273: error: Attribute "listPreferredItemPaddingRight" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:276: error: Attribute "dropDownListViewStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:277: error: Attribute "listPopupWindowStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:280: error: Attribute "textAppearanceListItem" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:282: error: Attribute "textAppearanceListItemSmall" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:291: error: Attribute "panelBackground" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:293: error: Attribute "panelMenuListWidth" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:295: error: Attribute "panelMenuListTheme" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:297: error: Attribute "listChoiceBackgroundIndicator" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:306: error: Attribute "colorPrimary" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:310: error: Attribute "colorPrimaryDark" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:314: error: Attribute "colorAccent" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:317: error: Attribute "colorControlNormal" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:320: error: Attribute "colorControlActivated" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:323: error: Attribute "colorControlHighlight" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:326: error: Attribute "colorButtonNormal" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:329: error: Attribute "colorSwitchThumbNormal" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:332: error: Attribute "controlBackground" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:338: error: Attribute "alertDialogStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:339: error: Attribute "alertDialogButtonGroupStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:340: error: Attribute "alertDialogCenterButtons" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:342: error: Attribute "alertDialogTheme" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:345: error: Attribute "textColorAlertDialogListItem" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:348: error: Attribute "buttonBarPositiveButtonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:351: error: Attribute "buttonBarNegativeButtonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:354: error: Attribute "buttonBarNeutralButtonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:362: error: Attribute "autoCompleteTextViewStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:364: error: Attribute "buttonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:366: error: Attribute "buttonStyleSmall" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:368: error: Attribute "checkboxStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:370: error: Attribute "checkedTextViewStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:372: error: Attribute "editTextStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:374: error: Attribute "radioButtonStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:376: error: Attribute "ratingBarStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:378: error: Attribute "ratingBarStyleIndicator" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:380: error: Attribute "ratingBarStyleSmall" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:382: error: Attribute "seekBarStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:384: error: Attribute "spinnerStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:386: error: Attribute "switchStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:402: error: Attribute "navigationMode" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:411: error: Attribute "displayOptions" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:423: error: Attribute "subtitle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:425: error: Attribute "titleTextStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:427: error: Attribute "subtitleTextStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:429: error: Attribute "icon" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:431: error: Attribute "logo" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:433: error: Attribute "divider" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:435: error: Attribute "background" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:437: error: Attribute "backgroundStacked" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:439: error: Attribute "backgroundSplit" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:441: error: Attribute "customNavigationLayout" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:445: error: Attribute "homeLayout" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:447: error: Attribute "progressBarStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:449: error: Attribute "indeterminateProgressStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:451: error: Attribute "progressBarPadding" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:456: error: Attribute "itemPadding" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:458: error: Attribute "hideOnContentScroll" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:461: error: Attribute "contentInsetStart" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:464: error: Attribute "contentInsetEnd" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:467: error: Attribute "contentInsetLeft" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:470: error: Attribute "contentInsetRight" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:472: error: Attribute "elevation" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:475: error: Attribute "popupTheme" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:499: error: Attribute "closeItemLayout" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:504: error: Attribute "paddingStart" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:506: error: Attribute "paddingEnd" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:515: error: Attribute "theme" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:525: error: Attribute "backgroundTint" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:528: error: Attribute "backgroundTintMode" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:562: error: Attribute "preserveIconSpacing" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:644: error: Attribute "showAsAction" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:669: error: Attribute "actionLayout" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:674: error: Attribute "actionViewClass" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:680: error: Attribute "actionProviderClass" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:699: error: Attribute "layout" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:702: error: Attribute "iconifiedByDefault" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:706: error: Attribute "queryHint" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:709: error: Attribute "defaultQueryHint" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:715: error: Attribute "closeIcon" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:717: error: Attribute "goIcon" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:719: error: Attribute "searchIcon" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:721: error: Attribute "searchHintIcon" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:723: error: Attribute "voiceIcon" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:725: error: Attribute "commitIcon" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:727: error: Attribute "suggestionRowLayout" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:729: error: Attribute "queryBackground" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:731: error: Attribute "submitBackground" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:738: error: Attribute "initialActivityCount" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:745: error: Attribute "expandActivityOverflowButtonDrawable" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:750: error: Attribute "textAllCaps" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:777: error: Attribute "measureWithLargestChild" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:781: error: Attribute "showDividers" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:788: error: Attribute "dividerPadding" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:799: error: Attribute "titleTextAppearance" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:800: error: Attribute "subtitleTextAppearance" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:804: error: Attribute "titleMargins" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:805: error: Attribute "titleMarginStart" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:806: error: Attribute "titleMarginEnd" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:807: error: Attribute "titleMarginTop" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:808: error: Attribute "titleMarginBottom" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:813: error: Attribute "maxButtonHeight" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:815: error: Attribute "collapseIcon" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:817: error: Attribute "collapseContentDescription" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:823: error: Attribute "navigationIcon" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:826: error: Attribute "navigationContentDescription" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:836: error: Attribute "logoDescription" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:838: error: Attribute "titleTextColor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:840: error: Attribute "subtitleTextColor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:845: error: Attribute "state_above_anchor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:857: error: Attribute "overlapAnchor" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:863: error: Attribute "color" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:865: error: Attribute "spinBars" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:867: error: Attribute "drawableSize" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:869: error: Attribute "gapBetweenBars" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:871: error: Attribute "arrowHeadLength" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:873: error: Attribute "arrowShaftLength" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:875: error: Attribute "barLength" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:877: error: Attribute "thickness" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:880: error: Attribute "drawerArrowStyle" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:895: error: Attribute "buttonTint" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:898: error: Attribute "buttonTintMode" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:920: error: Attribute "track" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:926: error: Attribute "thumbTextPadding" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:928: error: Attribute "switchTextAppearance" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:930: error: Attribute "switchMinWidth" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:932: error: Attribute "switchPadding" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:934: error: Attribute "splitTrack" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:936: error: Attribute "showText" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:954: error: Attribute "buttonPanelSideLayout" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:955: error: Attribute "listLayout" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:956: error: Attribute "multiChoiceItemLayout" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:957: error: Attribute "singleChoiceItemLayout" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:958: error: Attribute "listItemLayout" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:965: error: Attribute "allowStacking" has already been defined
C:\Android\sdk\tools\..\extras\android\support\v7\appcompat\res\values\attrs.xml:971: error: Attribute "srcCompat" has already been defined

any help ?

thanks.
 

roberto64

Active Member
Licensed User
Longtime User
you quelo trial, error
"builder.setText("DonManfred presents") builder.setTrackerColor(Colors.Red)"
scanner = builder.Initialize("Barcode").BleepEnabled(True).EnableAutoFocus(True).withBackfacingCamera.setText("DonManfred presents").setTrackerColor(Colors.Red).build"
Version lib MaterialBarcodeScanner v1.01
 

roberto64

Active Member
Licensed User
Longtime User
This and error, I apologize for my English, only co translator
regards
 

Attachments

  • ERRore.jpg
    ERRore.jpg
    258.6 KB · Views: 276

DonManfred

Expert
Licensed User
Longtime User
Upload your project please. In the ide under File-Export as zip
i dont like to see images as problem but no code!

Are the two maven repos up-to-date?
Which version of the lib are you using? 1.5 is uptodate

I just can say; i tried my example above and it is working here.
 
Top