Unity-Technologies / uaal-example

Other
736 stars 234 forks source link

[Android] APK turning in two apps after install #36

Open rd3-elizeu opened 3 years ago

rd3-elizeu commented 3 years ago

I don't know if this is supposed to happen, but after doing eveything in the tutorials i end up getting two apps, the Native + Unity and the other contains only the Unity app with none of the native features/screens. Is there a way to not have this second Unity only app installed together?

kyokomi commented 3 years ago

Hi @rd3-elizeu If you remove the intent-filter in AndroidManifest.xml in the exported Library and place it in Assets/Plugins/Android, the Unity only app will probably not be installed.

image

<activity android:name="com.unity3d.player.UnityPlayerActivity">

    ...

-    <intent-filter>
-      <action android:name="android.intent.action.MAIN" />
-      <category android:name="android.intent.category.LAUNCHER" />
-    </intent-filter>

    ...

</activity>
CSaratakij commented 2 years ago

Thank you @kyokomi . This info should be add into Android step by step example (Seriously) https://github.com/Unity-Technologies/uaal-example/blob/master/docs/android.md . Edit I see now, the markdown is hide some part of xml. (I can only see "..." when not viewing with raw text)


 <intent-filter>...</intent-filter>