/// <summary> /// Registers Java callbacks to get Android events. /// </summary> private static void _RegisterTangoServiceLifecycle() { #if UNITY_ANDROID && !UNITY_EDITOR AndroidJavaObject tangoObject = GetTangoHelperObject(); m_tangoServiceLifecycle = new TangoServiceLifecycleListener(); tangoObject.Call("attachTangoServiceLifecycleListener", m_tangoServiceLifecycle); #endif }