????monkeyrunner ???
#?????????
from com.android.monkeyrunner import MonkeyRunner?? MonkeyDevice?? MonkeyImage
#?????豸
device = MonkeyRunner.waitForConnection()
#???????????Activity         ????/ .??????μ?Activity ????
device.startActivity(component='com.example.zoe/.MainActivity')
#???2????
device.press('KEYCODE_MENU'??'DOWN_AND_UP')
#???????
result = device.takeSnapshot()
#?????????????浽D??????
result.writeToFile('D:\ad\shot1.png'??'png')