# intentUri

> Mirrors android:android.app.ApplicationStartInfo getIntent() method, returning the URI string representation of the launch intent via Intent.toUri(0).

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Android](/engine/6000.7/script-reference/unityengine/android.md)
* **Assembly:** UnityEngine.AndroidJNIModule

```csharp
string intentUri { get; }
```

### Remarks

For more information, refer to Android's documentation on [getIntent()](https://developer.android.com/reference/android/app/ApplicationStartInfo#getIntent\(\)). Returns null if there was no intent associated with this start.

This property returns the intent as a URI string rather than an `AndroidJavaObject` to avoid keeping a native JNI handle alive beyond the lifetime of the [ApplicationStartInfoProvider.GetHistoricalProcessStartReasons](/engine/6000.7/script-reference/unityengine/android/applicationstartinfoprovider/gethistoricalprocessstartreasons.md) call. To reconstruct the original Android Intent from this URI, use [Intent.parseUri](https://developer.android.com/reference/android/content/Intent#parseUri\(java.lang.String,%20int\)).

### Examples

```csharp
using UnityEngine;
using UnityEngine.Android;

public class ApplicationStartInfoExample : MonoBehaviour
{
    void PrintLaunchAction(IApplicationStartInfo info)
    {
        if (info.intentUri == null)
            return;
#if UNITY_ANDROID
        using var intentClass = new AndroidJavaClass("android.content.Intent");
        using var intent = intentClass.CallStatic<AndroidJavaObject>("parseUri", info.intentUri, 0);
        string action = intent.Call<string>("getAction");
        Debug.Log($"Launch action: {action}");
#endif
    }
}
```
