#!/usr/bin/env monkeyrunner                                                         
                                                                                    
import time                                                                         
                                                                                    
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice                     
                                                                                    
device = MonkeyRunner.waitForConnection()  

print "Device connected"
     
# Touch down screen                                                                               
device.touch(100, 500, MonkeyDevice.DOWN)                                           

# Move from 100, 500 to 300, 500
for i in range(1, 45):                                                              
    device.touch(100 + 20 * i, 500, MonkeyDevice.MOVE)                              
    print "move ", 100 + 20 * i, 500                                                
    time.sleep(0.1)             

# Move from (300, 500 to 200, 500)                                                    
for i in range(1, 11):                                                              
    device.touch(980, 500 - 10 * i, MonkeyDevice.MOVE)                              
    print "move ", 980, 500 - 10 * i                                                
    time.sleep(0.1)                                                                 

# Remove finger from screen
device.touch(980, 400, MonkeyDevice.UP) 
f71e051c5acac9c1a49e008b77fa130a3c95505c
#!/usr/bin/env monkeyrunner                                                         
                                                                                    
import time                                                                         
                                                                                    
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice                     
                                                                                    
device = MonkeyRunner.waitForConnection()  

print "Device connected"
     
# Touch down screen                                                                               
device.touch(100, 500, MonkeyDevice.DOWN)                                           

# Move from 100, 500 to 300, 500
for i in range(1, 45):                                                              
    device.touch(100 + 20 * i, 500, MonkeyDevice.MOVE)                              
    print "move ", 100 + 20 * i, 500                                                
    time.sleep(0.1)             

# Move from (300, 500 to 200, 500)                                                    
for i in range(1, 11):                                                              
    device.touch(980, 500 - 10 * i, MonkeyDevice.MOVE)                              
    print "move ", 980, 500 - 10 * i                                                
    time.sleep(0.1)                                                                 

# Remove finger from screen
device.touch(980, 400, MonkeyDevice.UP) 