We are developing an Android VR application that has some touch interactions before we put the cellphone in the Cardboard.
From my understanding, the Cardboard SDK captures touch events and forwards them to Unity using another Android activity. On the first touch the status bar appears and the event is not forwarded to the application. If a second touch is performed while this status bar is visible, it is then sent to the application. Waiting some time hides the status bar, and then the same behavior occours as in the first touch.
Therefore I would like to know the following:
- Why does the status bar shows on touch when adding the Cardboard SDK? Is this a Cardboard Setting? Can it be disabled?
- Why does the touch event only work when this status bar is visible? Can they be always forwarded?
Edit:
This is the single activity in the Android manifest:
<activity android:name="com.google.vrtoolkit.cardboard.plugins.unity.UnityCardboardActivity" ... >
...
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
</activity>