title: Swipe method not working in android automation testing
body: <p>I am trying to implement swipe method.May I know what is the correct way to achieve my objective?</p>
  
  <pre><code>public void swipeWithCordinateLocation(WebDriver driver,double startX,
                                         double  startY,double endX,double endY,
                                         double Duration)
  {
  JavascriptExecutor js = (JavascriptExecutor) driver;
  HashMap&lt;String, Double&gt; swipeObject = new HashMap&lt;String, Double&gt;();
  swipeObject.put("x", startX);
  swipeObject.put("y", startY);
  swipeObject.put("x", endX);
  swipeObject.put("y",endY );
  swipeObject.put("duration", Duration);
  // HashMap[] param = {swipeObject};
  js.executeScript("mobile: swipe", swipeObject);
  
  }
  
  common.swipeWithCordinateLocation(driver, 100.00, 500.00, 500.00, 500.00, 1.00);
  </code></pre>
  
  <p>But appium is perform swipe but it takes different credentials </p>
  
  <pre><code>[x=360][y=592]
   to [x=360][y=592]
  </code></pre>
  
  <p>. what to do?
  Can any one help me please.</p>