# Start using Acquire

### Initialize Acquire sdk :

There are several ways to initialize acquire sdk :

#### &#x31;*.* Standar&#x64;**:**&#x20;

```java
AcquireApp.init(application: Application, accountId: String)
```

Call this method from an Activity or an Application subclass.&#x20;

It is recommended to use application subclass for better performance.

[Here](https://stackoverflow.com/a/2929927) is a guide to register application class in your manifest file.

Get your Account ID :

You can find your **`accountID`**&#x61;s shown in image below :

![Get Acquire account ID](https://4291449717-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMa9C05MmCnAr03_v9O%2F-LMqN7oJ8zPc3RXoe5K7%2F-LMqORAgiPxM_DBX16gF%2Facquire-image-sdk.png?alt=media\&token=313bfe14-e4be-4085-ac0e-8ec7b6c7dd5b)

#### 2. Using options :

```java
AcquireApp.initWithOptions(application: Application, accountId: String, showVideoButton: Boolean, showAudioButton: Boolean)
```

To change default buttons behavior pass as per application requirement.

* **showVideoButton** - Show video button in top tab of chat screen on visitor's main chat messages screen. Default value is set to true.
* **showAudioButton** - Show audio button in top tab of chat screen on visitor's main chat messages screen. Default value is set to true.

#### 3. Using Server URL

```
AcquireApp.initWithServer(application: Application, serverUrl: String, accountId: String) 
```

### Permissions Description <a href="#permissions-description" id="permissions-description"></a>

We include the **INTERNET** permission by default as we need it to make network requests :

```
<uses-permission android:name="android.permission.INTERNET"/>
```

&#x20;In the AndroidManifest.xml file.

#### Run-time permissions

* To make Audio/Video calls camera and record audio permissions are needed so it will ask in marshmallow and above devices. Before marshmallow it is granted by default as mentioned in **AndroidManifest.xml**.

```
<uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.RECORD_AUDIO" />
```

{% hint style="info" %}
Audio/video calls will not work if these permissions are not granted.
{% endhint %}

* To share attachments from device Read and Write External Storage permissions are needed so it will ask in marshmallow and above devices. Before marshmallow it is granted by default as mentioned in **AndroidManifest.xml.**

```
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
```

{% hint style="info" %}
User will be unable to share attachment if these permissions are not granted.
{% endhint %}
