将SL4A(ASE)转换为GNU / Linux框

时间:2011-05-12 17:46:01

标签: android sl4a

没有模拟器,有没有办法执行脚本。像任何其他正常的py代码? 尝试移植,但/我得到:

droid = android.Android()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/android.py", line 34, in __init__
self.conn = socket.create_connection(addr)
File "/usr/lib/python2.6/socket.py", line 547, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known

1 个答案:

答案 0 :(得分:1)

是的,您可以使用手机的远程连接并执行本地脚本,请参阅SL4A Wiki中的RemoteControl