# Setup

## Bluetooth pairing with Biometric Wallet <a href="#bluetooth-paring" id="bluetooth-paring"></a>

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.

* Refer to : <https://userguide.dcentwallet.com/biometric-wallet/android-connect>

## Android App Setup

You can develop wallet application using D'CENT Andoird SDK.&#x20;

The <mark style="color:blue;">`.aar`</mark> file in output directory is our sdk library file.

Copy <mark style="color:blue;">`dcent-biometric-sdk-android-vX.X.aar`</mark> file to <mark style="color:blue;">`libs`</mark> folder in your android application project.

<div align="center"><figure><img src="https://3196447716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSabI0mrlgeosuXblg3%2Fuploads%2FFVJLg30oZZQ0L6pORh2L%2Fimage.png?alt=media&#x26;token=a8652f07-3816-4056-8040-37f2623dad9e" alt=""><figcaption></figcaption></figure></div>

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" />
```

###

<br>
