---
title: "Android SDK: Custom URL handler"
description: "Handle widget links with a custom URL handler with the Gleap Android SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/486-android-sdk-custom-url-handler
collection: "Android"
updated: 2026-11-01
language: en
---

# Android SDK: Custom URL handler

Handle widget links with a custom URL handler with the Gleap Android SDK. Follow the integration code examples.

There are scenarios where you need complete control over the behavior of hyperlink actions within your application. The method described below enables you to override the default URL handler. By setting a new URL handler, the Gleap framework will no longer manage URL openings automatically. Instead, it will invoke your custom callback function, giving you the freedom to handle URL interactions according to your specific requirements.

## Configure the URL handler

```javascript
Gleap.getInstance().registerCustomLinkHandler(new CustomLinkHandlerCallback() {
    @Override
    public void invoke(String url) {
        // Insert your URL handling logic here
    }
});
```

## Related

- [Android SDK setup](https://docs.gleap.ai/en/articles/466-android-sdk-setup.md)
- [Android SDK: User identity](https://docs.gleap.ai/en/articles/467-android-sdk-user-identity.md)
- [Android SDK: Callbacks](https://docs.gleap.ai/en/articles/468-android-sdk-callbacks.md)
- [Android SDK: Frontend tools](https://docs.gleap.ai/en/articles/469-android-sdk-frontend-tools.md)
- [Android SDK: Forms](https://docs.gleap.ai/en/articles/470-android-sdk-forms.md)
