Solved : Remote control of SL4A from computer

I setup the remote control SL4A environment.

C:\Windows\system32>set AP_PORT=9999

C:\Windows\system32>adb forward tcp:9999 tcp:55407

When trying to import android from the command line python interface I got this error

Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import android
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
ImportError: No module named android

I then JUST downloaded the file as suggested in the SL4A wiki and pasted it in the python installation directory C:/Python27. This solved the problem and import android executes without a problem!

>>> import android



Leave a comment

Your email address will not be published. Required fields are marked *