working with android:
public boolean doubleTapElement(MobileElement element) {
int x,y;
try {
x = element.getCenter().getX();
y = element.getCenter().getY();
((AppiumDriver) driver).tap(1, x, y, 100);
try{Thread.sleep(50);}catch (Exception e1) {}
((AppiumDriver) driver).tap(1, x, y, 100);
try{Thread.sleep(100);}catch (Exception e1) {}
return true;
} catch (Exception e) {
return false;
}
}