private static void ShowConnectedView()
 {
     Logger.Info(nameof(ShowConnectedView));
     if (VMWindow.Instance.IsShownOnce)
     {
         MediaManager.UnmuteEngine();
     }
     else
     {
         MediaManager.MuteEngine(false);
     }
     InputMapper.Instance.SetMonitor(AndroidBootUp.mMonitor);
     GPSManager.Instance().SetMonitor(AndroidBootUp.mMonitor);
     Logger.Debug("Raising Layout event");
     Opengl.userInteracted = true;
     if (!Opengl.IsSubWindowVisible())
     {
         Logger.Info("showing window");
         Opengl.glWindowAction = GlWindowAction.Show;
         Opengl.userInteracted = false;
     }
     LayoutManager.FixupGuestDisplay();
     AndroidBootUp.isAndroidReady = true;
     VMWindow.Instance.BootUpTasks();
 }
Example #2
0
 public static void Shutdown()
 {
     lock (GPSManager.s_IoHandleLock)
     {
         if (!(GPSManager.s_IoHandle != IntPtr.Zero))
         {
             return;
         }
         Logger.Debug("Shutting down gps...\n");
         GPSManager.CloseHandle(GPSManager.s_IoHandle);
         GPSManager.s_IoHandle = IntPtr.Zero;
     }
 }
 private static void GpsAttach()
 {
     new Thread((ThreadStart)(() =>
     {
         Logger.Info(nameof(GpsAttach));
         try
         {
             GPSManager.Init();
         }
         catch (Exception ex)
         {
             Logger.Error("Exception in GpsAttach. Err : " + ex.ToString());
         }
     }))
     {
         IsBackground = true
     }.Start();
 }
 internal static void GpsDetach()
 {
     Logger.Info(nameof(GpsDetach));
     GPSManager.Shutdown();
 }