To detect whether your app was launched from VR at runtime, use
GvrIntent.IsLaunchedFromVr().
This method returns true if the Android intent
that launched your app contains the android.intent.extra.VR_LAUNCH extra,
indicating that your app was launched from VR.

All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.