Android+Python[new version]

3 篇文章 0 订阅
2 篇文章 0 订阅

[Guys], there is a good news that the android has had the capability for running python script.

On the Internet, the materials about this environment construction may be sufficient, but those are for the old version of the "SL4A".


Now, I will show you how to construct the python development and running environment for android.

That is the little case. If you are able to follow these steps below, you will run the python on android in few minutes.

[Steps]

(1)You need [Download] two files for your android.

a.    "sl4a_r5.apk" ,  and you may find it in this page: http://code.google.com/p/android-scripting/downloads/list

b.    "PythonForAndroid_r4.apk"   ,  and this one is also in the page : http://code.google.com/p/android-scripting/downloads/list

(2)Push them into your android.

(3)Be sure that your android has been access to the Internet. If you wann accomplish this task soon, you may use the wifi.

[Pay attention to]This step is so significant that if you miss it, your cellphone may never run python. What's more, this is the exact distinction between the new one and the old version.

(4)Under your android, click the apk file called "sl4a_r5" to install it.

(5)Click the apk documentation called "PythonForAndroid_r4" to install it.

(6)Now, if everything goes right, you may have seen these two new icons on your android screen.

(7)But now, you have not installed the python interpret successfully. Then you need click the python icon to run it.

(8)Press the "install" button.

(9)Automatically, this program downloads the documentations which are essential for python.

(10)After that, you are able to run the python script on your android!

-----------------------------------------------------------------------------------------------------------------------------

[But you know], that is a nightmare to edit the code on the cellphone. So what we can do?

[Propose]:

You may write the code on your PC and run it on android.

You know, there is the highlight,auto indent,debugand automatic matching of parentheses............ So why we not accept these helpful functions?

[You can] edit your python code on your PC. You may use your favorite emacs or vim. And then the thing you just need to do is pushing your code file into the "sl4a/scripts/"  folder.

[After that] when you run the sl4a, your code documentation will be displayed in the front of you. [You just run it].

-------------------------------------------------------------------------------------------------------------------------------

Okay, [Python is wonderful]!






  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值