barKoder Installation Guide for Android Barcode Reader SDK

To utilize our SDK on Android, follow these simple steps to integrate it into your Android project.

Import barkoder as module in Groovy DSL #

Import Module #

Start by importing the 'barkoder' module as displayed in the instructions.

Please note, the source directory path should refer to the 'barcoder' folder that contains both 'barkoder.aar' and 'build.gradle', not directly to the 'barkoder.aar' file.

Import barKoder as module in Groovy DSL
Import barKoder as module in Groovy DSL


Keep in mind that path in source directory should reference to the barcoder folder that contains both barkoder.aar and build.gradle, not directly to the barkoder.aar file

Add Dependency #

In your app's build gradle file, add the following dependency:



Add dependency for barKoder
Add dependency for barKoder


                implementation project(path: ':barkoder')
            


Add Activity/Fragment #

In the layout.xml of the activity/fragment where you want the scanner to be visible, add the following code:


Add activity/fragment
Add activity/fragment


                <com.barkoder.BarkoderView
        android:id="@+id/bkdView"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />
            


Create Barkoder Config #

Create a 'barkoder' configuration as per your requirements or choose from our templates.

                bkdView.config = BarkoderConfig(this, "LICENSE_KEY") {
   Log.i("LicenseInfo", it.message)
}
BarkoderHelper.applyConfigSettingsFromTemplate(
   this,
   bkdView.config,
   BarkoderConfigTemplate.INDUSTRIAL_1D,
   null
)
            

Add BarkoderResultCallback #

Implement the 'BarkoderResultCallback' interface to receive scanned results.

                class MainActivity : AppCompatActivity(), BarkoderResultCallback {
   ....

   override fun scanningFinished(results: Array<Barkoder.Result>, thumbnails: Array<Bitmap>, imageResult: Bitmap?) {
       Log.i("Scanned result", results[0].textualData)
   }
}
            

Start Scanning #

Finally, initiate the scanning process with the following command:

                bkdView.startScanning(this)
            

Enabling Symbologies #

The following method can be used in order to enable individual symbologies from setActiveBarcodeTypes.

( There is option to set multiple active barcodes at once as array )
                private fun setActiveBarcodeTypes() {
    // There is option to set multiple active barcodes at once as array
    bkdView.config.decoderConfig.SetEnabledDecoders(
        arrayOf(
            Barkoder.DecoderType.QR,
            Barkoder.DecoderType.Ean13
            Barkoder.DecoderType.IDDocument // enable mrz
        )
    )
    // or configure them one by one
    bkdView.config.decoderConfig.UpcA.enabled = true
}
            

This comprehensive guide should enable a smooth integration of our SDK into your Android project. For any further assistance, feel free to reach out by utilizing the Ticketing System of the barKoder Developer Portal.

Licensing #

The SDK will scan barcodes even without a license, but results will come with an "UNLICENSED" prefix.If you want to test the SDK today create a trial license https://barkoder.com/request-quote or just sign-up at barkoder.com/register to access all barKoder features.

Import barkoder  in Kotlin DSL Gradle (Android) #

Create libs folder in ur app directory #

<br>

Put barkoder.aar in libs folder #

<br>

Add to build.gradle.kts (Module :app): #

                implementation(files("libs/barkoder.aar"))
            

Page Contents

History:

close

Version #1206

Published: 08/14/2025 05:31:55

Created On: 08/14/2025 05:31:55

Modified By: Lazar Ilievski

Published Version

Version #1177

Was Published: 08/13/2025 07:22:28

Created On: 08/13/2025 07:22:28

Modified By: Lazar Ilievski

Version #1171

Was Published: 08/13/2025 06:24:41

Created On: 08/13/2025 06:24:41

Modified By: Vladimir Lazarevski

Version #1123

Was Published: 08/10/2025 03:50:08

Created On: 08/10/2025 03:50:08

Modified By: Vladimir Lazarevski

Version #1122

Was Published: 08/10/2025 03:08:26

Created On: 08/10/2025 03:08:26

Modified By: Vladimir Lazarevski

Version #1121

Was Published: 08/10/2025 03:05:03

Created On: 08/10/2025 03:05:03

Modified By: Vladimir Lazarevski

Version #1120

Was Published: 08/10/2025 03:04:41

Created On: 08/10/2025 03:04:41

Modified By: Vladimir Lazarevski

Version #1119

Was Published: 08/10/2025 03:02:41

Created On: 08/10/2025 03:02:41

Modified By: Vladimir Lazarevski

Version #1115

Was Published: 08/09/2025 06:17:57

Created On: 08/09/2025 06:17:57

Modified By: Vladimir Lazarevski

Version #1039

Was Published: 08/07/2025 06:57:55

Created On: 08/07/2025 06:57:55

Modified By: Vladimir Lazarevski

Version #1038

Was Published: 08/07/2025 06:49:54

Created On: 08/07/2025 06:49:54

Modified By: Vladimir Lazarevski

Version #1037

Was Published: 08/07/2025 06:49:00

Created On: 08/07/2025 06:49:00

Modified By: Vladimir Lazarevski

Version #1036

Was Published: 08/07/2025 06:48:23

Created On: 08/07/2025 06:48:23

Modified By: Vladimir Lazarevski

Version #1035

Was Published: 08/05/2025 08:36:53

Created On: 08/05/2025 08:36:53

Modified By: Lazar Ilievski

Version #920

Was Published: 02/17/2025 10:59:09

Created On: 02/17/2025 10:59:09

Modified By: Lazar Ilievski

Version #798

Was Published: 11/28/2024 20:57:38

Created On: 11/28/2024 20:57:38

Modified By: Vangel Ivanov

Version #684

Was Published: 10/03/2024 10:53:10

Created On: 10/03/2024 10:53:10

Modified By: Lazar Ilievski

Version #145

Was Published: 08/02/2024 18:23:28

Created On: 08/02/2024 18:23:15

Modified By: Lazar Ilievski

Version #144

Was Published: 08/02/2024 18:21:14

Created On: 08/02/2024 18:20:59

Modified By: Lazar Ilievski

Version #90

Was Published: 06/16/2024 14:59:39

Created On: 06/16/2024 14:59:34

Modified By: Mitko Nikolov

Version #89

Was Published: 06/16/2024 14:54:13

Created On: 06/16/2024 14:54:09

Modified By: Vladimir Lazarevski

Version #88

Was Published: 08/25/2025 13:32:18

Created On: 06/16/2024 14:53:59

Modified By: Vladimir Lazarevski

Version #87

Was Published: 08/25/2025 13:32:18

Created On: 06/16/2024 13:12:03

Modified By: Vladimir Lazarevski

Version #86

Was Published: 06/16/2024 13:06:03

Created On: 06/16/2024 13:05:58

Modified By: Vladimir Lazarevski

Version #85

Was Published: 06/16/2024 13:04:28

Created On: 06/16/2024 13:04:22

Modified By: Vladimir Lazarevski

Version #62

Was Published: 06/12/2024 13:28:59

Created On: 06/12/2024 13:28:14

Modified By: Trajce Poprizov

Version #51

Was Published: 06/12/2024 08:43:04

Created On: 06/12/2024 08:41:52

Modified By: Trajce Poprizov

Version #50

Was Published: 06/12/2024 08:42:01

Created On: 06/12/2024 07:30:20

Modified By: Trajce Poprizov

Version #14

Was Published: 06/12/2024 08:06:07

Created On: 05/30/2024 07:04:18

Modified By: Trajce Poprizov