> For the complete documentation index, see [llms.txt](https://developer.konverse.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.konverse.ai/app-integration/android-app-integration.md).

# Android App Integration

## **Step 1: Create App Interface And WebView Element**

Open res -> layout -> activity\_main.xml, create the application interface and add WebView element to it.

![](/files/-MICq6XxKcpJIzvQyHb_)

## **Step 2: Declare A WebView Variable, Add A Link To Your Site**

Go to src -> package -> MainActivity.java. You will need to declare a WebView variable, enable JavaScript and load the link of your website. You can check the below code screenshot. Do not forget to add link of your website in mywebView\.loadUrl().

![](/files/-MICrVcWgT6Izru6xiD7)

## **Step 3: Set WebView Client**

Next step is to add one line of code in your MainActivity.java class given below. If you do not add this code in your app then clickable links will open in a standard web browser such as Google Chrome. To ensure that the user stays within the app and links open inside your app, you will need to add the below code.

```
mywebView.setWebViewClient(new WebViewClient());
```

## **Step 4: Remove Additional Padding**

If you want to remove the additional spacing, open activity\_main.xml and remove the padding from layouts.
