예제 #1
0
 /// <summary>
 /// Releases all resources used by <see cref="AndroidController"/>
 /// </summary>
 /// <remarks>Needs to be called when application has finished using <see cref="AndroidController"/></remarks>
 public void Dispose()
 {
     if (Adb.ServerRunning)
     {
         Adb.KillServer();
         Thread.Sleep(1000);
     }
     AndroidController.instance = null;
 }
예제 #2
0
 /// <summary>
 /// Creates the resource directories.
 /// </summary>
 private void CreateResourceDirectories()
 {
     try {
         if (!Adb.ExecuteAdbCommand(new AdbCommand("version")).Contains(Adb.ADB_VERSION))
         {
             Adb.KillServer();
             Thread.Sleep(1000);
             ResourceFolderManager.Unregister(ANDROID_CONTROLLER_TMP_FOLDER);
             Extract_Resources = true;
         }
     } catch (Exception) {
         Extract_Resources = true;
     }
     ResourceFolderManager.Register(ANDROID_CONTROLLER_TMP_FOLDER);
 }