# \[Solved\] Launch URL doesn't work in Android for SDK target 30

**URL:** <https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399>\
**Category:** Mobile\
**Tags:** Android-Packaging, permission, unreal-engine, Android, question\
**Created:** [September 5, 2021, 1:08am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399 "2021-09-05T01:08:10Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![PoOlluX\_fr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PoOlluX\_fr](https://forums.unrealengine.com/u/PoOlluX_fr)\
**Post date:** [March 10, 2024, 9:24am UTC](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399/20 "2024-03-10T09:24:33Z")

</div>

Hello,

I also struggled with this problem.

I didn’t wan’t to have the QUERY\_ALL\_PACKAGES activated for my app while still being able to use the Launch URL node to open the Google Maps App on Android.  
I found a solution that doesn’t require to recompile the whole engine at this [link](https://zenn.dev/pytokyo/articles/6e6ba1a62a133a) which I translated in my language with google translate.

It tells you to edit the java file `Engine/Build/Android/Java/src/com/epicgames/ue4/GameActivity.java.template`  
in the engine folder and comment out some lines that call the getPackageManager() function which requires that QUERY\_ALL\_PACKAGES permission:

```auto
//if (BrowserIntent.resolveActivity(getPackageManager()) != null)
//{
    Log.debug("[JAVA} AndroidThunkJava_LaunchURL: Starting activity");
    startActivity(BrowserIntent);
//}

```

On my specific case it worked and maybe someone will find this useful here 🙂

---

_[View the full topic](https://forums.unrealengine.com/t/solved-launch-url-doesnt-work-in-android-for-sdk-target-30/488399)._
