cancel
Showing results for 
Search instead for 
Did you mean: 

Application closes when "No" is selected from Platform Menu Confirm Quit and when Global Menu

comerobi
Explorer
Hello,

I am implementing the back button menu for Gear VR as required.

The problem is, when I click "No" from the Confirm Quit Menu or I return back from the Global Menu, my application restarts from the beginning (instead of resuming).

I want my app to resume instead, how can I achieve that?
How can I detect the answer coming from Confirm Quit Menu and where shoul I call my own Resume() method in the code?

Thank You
Roberto
1 REPLY 1

comerobi
Explorer
Solved:

Move your <intent-filter> from "com.unity3d.player.UnityPlayerProxyActivity" to "com.unity3d.player.UnityPlayerNativeActivity" (cut and paste), like this:

<activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
            ......
            ......
       <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.INFO" />
        </intent-filter>
         ......
         .......
</activity>

It took me days to figure it out...............

Roberto