title: UiAutomator quit before it successfully launched
body: <p>Trying to launch the third party emulator Genymotion via Appium 1.3.4.1. But it fails.</p>
  
  <p>I have done the following things.</p>
  
  <p>I disable the Launch AVD from appium and launching the Genymotion AVD through the code.</p>
  
  <p>I paste the overall code here:</p>
  
  <pre><code>public static void main(String[] args) throws InterruptedException, ExecuteException, IOException {
  
          String deviceName = "Google Nexus 5 - 4.4.4 - API 19 - 1080x1920";
  
  
          DesiredCapabilities capabilities = new DesiredCapabilities();
          capabilities.setCapability(CapabilityType.BROWSER_NAME, ""); 
          capabilities.setCapability("deviceName","Google Nexus 5 - 4.4.4 - API 19 - 1080x1920"); 
          capabilities.setCapability("platformVersion", "4.4.4");
          capabilities.setCapability("platformName", "Android");
          capabilities.setCapability("app","D:/SOFTWARES/Apks/Hybrid.apk");
  
          DefaultExecutor executor = new DefaultExecutor();
          DefaultExecuteResultHandler resultHandler = new DefaultExecuteResultHandler();
          CommandLine launchEmul = new CommandLine("C:/Program Files/Genymobile/Genymotion/player");
          launchEmul.addArgument("--vm-name");
          launchEmul.addArgument("\""+deviceName+"\"");
          executor.setExitValue(1);
          executor.execute(launchEmul, resultHandler);
          Thread.sleep(40);
  
          driver = new AppiumDriver(new URL("http://127.0.0.1:4723/wd/hub"),capabilities);
  
      }
  </code></pre>
  
  <p>I couldn't able to start the Emulator through the code.
  Suggestions please.</p>