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 com.android.monkeyrunner import MonkeyRunner
device = MonkeyRunner.waitForConnection()
image1 = device.takeSnapshot()
image1.writeToFile('./getimage.png', 'png')
oi = Image.open('./getimage.png')


even in eclipse added pythonpath preferences can't do that
http://goo.gl/suKLm

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment