--------------------------------------------
Info: Initial study, inevitably there will be omissions, in the future I will continue to revise the completion, until perfect.
2014-10-11: First Edition
--------------------------------------------
Required Environment :
A.android sdk+java+python:http://www.cnblogs.com/dzblog/p/4014078.html
B.eclipse + Pydev
Pydev plug-in installation :
A. Open Eclipse->help->install New software ...
B. In work with, enter: Pydev-http://pydev.org/updates
C. Tick Pydev and click ' Next '
D. Wait for the download to install and the software will prompt you to restart Eclipse to complete the installation.
To create a python project:
1. New->other->pydev->pydev Project (here is an error message telling us that we need to configure the Python interpreter)
2. Fill in the name of the project (take Monkeyrunner as an example) and select ' Click here to configure a interpreter not list '
3. Click on Quick auto-config, the system will automatically search for the Python directory and add it to the green box, click OK
4. Select OK and finish to create the Python project.
To create a python file:
1. Right-click the Monkeyrunner->new->other->pydev->pydev&module and fill in the package name and file name:
2. Select Finish.
Write a print ' I am Python project ' and execute, and you can see that I am Python project is output in the console.
cheers!
Android Automation Research: Monkeyrunner Environment construction