Join Unity with Android Studio

0

I have two screens, one is from Android Studio, which has a "Play" button, and the other is from Unity, which shows the game.

These are the two images:

I managed to make the union by guiding me from this tutorial , the only problem I have is that when the APK was installed, two files with the same name appeared. How can I do so that only one appears?

This is the Manifest code of the Android project:

<?xml version="1.0" encoding="utf-8"?>

<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="28" />
<uses-feature android:glEsVersion="0x00020000" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" />

<uses-feature
    android:name="android.software.leanback"
    android:required="false" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

    <activity android:name=".MainActivity">

    </activity>
    <activity android:name=".Login" />
    <activity android:name=".UnityDoor">

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

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

    </activity>

    <activity android:label="@string/app_name"
        android:screenOrientation="fullSensor"
        android:launchMode="singleTask"
        android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density"
        android:name="com.mimy.Cubito.UnityPlayerActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
        </intent-filter>
        <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    </activity>
    <meta-data android:name="unity.build-id" android:value="4e98618a-e869-4604-a326-a242a8d53ece" />
    <meta-data android:name="unity.splash-mode" android:value="0" />
    <meta-data android:name="unity.splash-enable" android:value="True" />
    <meta-data android:name="android.max_aspect" android:value="2.1" />

</application>

This is the Manifest of the Unity module:

The last question is: How can I go back to the Android screen when I close Unity?

Thanks

    
asked by Milagros 12.10.2018 в 18:46
source

0 answers