Thursday, June 30, 2011

[android-developers] How do same using monkeyrunner tool and python lib?

I using monkeyrunner in the Eclipse but now need using python lib PIL
to comparing monkeyrunner cutting image

code like this:

import Image
from import MonkeyRunner
device = MonkeyRunner.waitForConnection()
image1 = device.takeSnapshot()
image1.writeToFile('./getimage.png', 'png')
oi ='./getimage.png')

even in eclipse added pythonpath preferences can't do that

You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment