Question: I'm trying to reproduce swipe action, with the help of adb. 
Currently, this code works (for swipe)

```
adb shell input touchscreen swipe 530 1420 530 1120
adb shell input touchscreen swipe 530 1120 830 1120

```

which is 

```
adb shell input touchscreen swipe x1,y1, x2,y2

```

but they are two discontinuous swipes.. Its equivalent to doing the first swipe, take ur hand off the screen and do the second swipe and so on..

I would like to achieve this as a single swipe.. 
Like, imagine a game where theres hot fire underneath and you have to drag [om-nom](http://tctechcrunch2011.files.wordpress.com/2012/09/om-nom.png) across various obstacles without taking your finger off [om-nom](http://tctechcrunch2011.files.wordpress.com/2012/09/om-nom.png).. with the above mentioned adb swipe, poor [om-nom](http://tctechcrunch2011.files.wordpress.com/2012/09/om-nom.png) would fall into the fire and become [roasted-om-nom](http://img2.wikia.nocookie.net/__cb20130805143948/cuttherope/images/7/77/Om_nom.png). :( 

something like 

```
adb shell input touchscreen swipe [(x1,y1, x2,y2), (x3,y3, x4,y4)...(xn-1,yn-1, xn,yn)]

```

if not adb, any other alternative?

Answer: 
You can do it in ADB. Use getevent to record your manual input with:

```
adb shell getevent

```

Or to record a specific device:

```
adb shell getevent /dev/input/eventx

```

Then simuate recorded input with:

```
adb shell sendevent /dev/input/eventx

```
I think this will be a good option

```
for i in {1..5}; do adb shell input touchscreen swipe 530 1420 530 1120; adb shell input touchscreen swipe 530 1120 830 1120; done

```