---
title: Step 2. Handling URI schemes
description: PingOne Android
component: orchsdks
page_id: orchsdks:davinci:use-cases/external-idp/android/02_handling_uri_schemes
canonical_url: https://developer.pingidentity.com/orchsdks/davinci/use-cases/external-idp/android/02_handling_uri_schemes.html
revdate: Tue, 25 Mar 2025 11:00:37 +0100
keywords: ["DaVinci", "Flows", "Tutorial", "Source Code", "Integration", "SDK", "Android"]
---

# Step 2. Handling URI schemes

[icon: circle-check, set=far]PingOne [icon: android, set=fab]Android

You must configure your Android app to open when the server redirects the user after authentication.

For example, you could use the custom URI scheme `myapp://example.com`.

To configure your app to open when using the custom URI scheme:

1. In the **Project** tree view of your Android Studio project, open the `build.gradle.kts` file.

2. In the `android.defaultConfig` section, add a manifest placeholder for the `appRedirectUriScheme` property that specifies the protocol of the custom schema:

   ```gradle
   android {
       defaultConfig {
           manifestPlaceholders["appRedirectUriScheme"] = "myapp"
       }
   }
   ```

   This creates a custom redirect scheme like `myapp://...` to return to your application.

   Replace `myapp` with a custom scheme specific to your apps.
