title: Appium - Swipe not working on the android device through java code
body: <p>I am new to Appium automation. I am trying to perform swipe on the android device screen and the code below does not works</p>
  
  <pre><code> JavascriptExecutor js = (JavascriptExecutor) driver;
      HashMap&lt;String, Double&gt; swipeObject = new HashMap&lt;String, Double&gt;();
      swipeObject.put("startX", 0.95);
      swipeObject.put("startY", 0.5);
      swipeObject.put("endX", 0.05);
      swipeObject.put("endY", 0.5);
      swipeObject.put("duration", 2.0);
      js.executeScript("mobile: swipe", swipeObject);
  </code></pre>
  
  <p>or </p>
  
  <pre><code>JavascriptExecutor js = (JavascriptExecutor) driver;
      HashMap&lt;String, Double&gt; swipeObject = new HashMap&lt;String, Double&gt;();
      swipeObject.put("startX", 600.00);
      swipeObject.put("startY", 685.00);
      swipeObject.put("endX", 198.00);
      swipeObject.put("endY", 550.00);
      swipeObject.put("duration", 2.0);
      js.executeScript("mobile: swipe", swipeObject);;
  </code></pre>
  
  <p>throws an error</p>
  
  <pre><code>org.openqa.selenium.WebDriverException: Not yet implemented. Please help us: http://appium.io/get-involved.html (WARNING: The server did not provide any stacktrace information)
  Command duration or timeout: 16 milliseconds
  Build info: version: '2.35.0', revision: '8df0c6b', time: '2013-08-12 15:43:19'
  System info: os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_25'
  Driver info: org.openqa.selenium.remote.RemoteWebDriver
  </code></pre>
  
  <p>If any alternative is available for the swipe, kindly provide the link.</p>
  
  <p>Thanks in advance.</p>