android - 获取 SL4A (ASE) 到 GNU/Linux box

标签 android sl4a

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

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

最佳答案

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

关于android - 获取 SL4A (ASE) 到 GNU/Linux box,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5992469/

相关文章:

android - 在 Android 的 fragment 中使用谷歌地图

android - 如何解决 LinearLayout 中的宽度问题?

android - Eclipse 中的某些布局文件不会出现图形布局选项卡

android - 我可以在 Android Market 上出售我的 SL4A 应用程序吗

python - Android SL4A (Python) 强制停止包失败。

android - 在 Android 上运行 Perl 脚本

android - 构建脚本错误,升级到 0.5.1 时发现不支持的 Gradle DSL 方法为 : 'release()' !

java - Android 应用程序中使用的服务器 Web 的 Google Places API KEY 请求被拒绝

android - wxPython的python程序可以移植到android吗?

安卓和Python