Android's menu button in Unity3d apps

android, android-softkeyboard, unity-game-engine

Solution

Go to Unity -> File -> Build Setting… -> Switch Platform to Android. Then, select Player Settings -> Bundle Identifier -> Copy Bundle Identifier.

Go to Assets/Plugins/Android

Create new file AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<application
    android:icon="@drawable/app_icon"
    android:label="@string/app_name"
    android:debuggable="true">
    <activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
              android:launchMode="singleTask"
              android:label="@string/app_name"
              android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
    </activity>
</application>
</manifest>

Or you can go to /Applications/Unity/Unity.app/Contents/PlaybackEngines And copy file AndroidManifest.xml, and then adding

   <uses-sdk
    android:minSdkVersion="9"
    android:targetSdkVersion="14" />

Note: targetSdkVersion >=14 is Ok, (i.e: 15, 16…)

Rebuild your app

Good luck!

Problem

As seen above, a menu button appears when I run my app. I want to hide the button as usual. I didn't know this problem till I changed my phone to Nexus5 using soft keys. I developed this app in Unity3d, and there was no code receiving messages from soft keys except a back button. Of course, nothing happens when I push the menu button. How can I control configuration about this in an Unity project?

Original source