Setup

Bluetooth pairing with Biometric Wallet

In order to develope android application with D'CENT biometric wallet, you must first connect your mobile phone together with the Biometric Wallet via Bluetooth pairing. Bluetooth pairing is required only once during the initial connection setup.

Android App Setup

You can develop wallet application using D'CENT Andoird SDK.

The .aar file in output directory is our sdk library file.

Copy dcent-biometric-sdk-android-vX.X.aar file to libs folder in your android application project.

Add the following to your build.gradle and manifest file:

build.glade(:app)

dependencies {
    // # add dcent-biometric-sdk-android-vX.X.aar file
    implementation files('libs/dcent-biometric-sdk-android-vX.X.aar')

    // # required to use dcent-biometric-sdk-android
    implementation 'com.google.protobuf:protobuf-java:3.5.1'
    implementation 'org.web3j:core:3.3.1-android'
    implementation 'com.klaytn.caver:core:1.0.0'
}

AndroidManifest.xml

<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />

<!-- Bluetooth permissions: Android API >= 31 (Android 12)-->
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/>
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" tools:targetApi="s" />

Last updated