Writing python (or any other SL4A) in android -


can point me tutorial on using android scripting enviornment? i've seen plenty of tutorials on how write python code using android api http://code.google.com/p/android-scripting/wiki/tutorials.

but none of i've seen gives example of how works inside android or how call python stuff android application. i'm looking tutorial can bring can see example of actual android app running python scripts.

note: tested on samsung galaxy s running android 2.2. ymmv.

i never thought of running python on android till saw this. :)
installed sl4a app , tried out simple shell script. installing python interpreter , trying out hello world soon.

the step straight forward:
1. download app (it.s not on market http://code.google.com/p/android-scripting/)
2. create shell script clicking add button , choosing shell in options pop-up
3. write code.
4. select "save , run" (or "save , exit" , click on script name in main window)
5. @ point script's output should show in terminal window.

now trying install python interpreter. keep thread updated guess same set of steps. having lot of issues downloading files - download slow , keeps closing.

i don't know if can call these scripts android appln. intention of project seems other way around. know!

edit: continuing experience python.
1. open sl4a , go view->interpreters menu. if python isn't listed select add menu.
2. download apk install (make sure install non-market applications available)
3. open python android app. has single button "install"
4. click on install , wait... , wait... don't use phone till install there seems bug in app if use other app on phone or tab away 1 download gets cancelled!!!
5. after successful install return sl4a should see python in interpreters , lot of sample python scripts.
6. samples seem cover quite bit of apis. quite impressed saw.

edit: since original post have tested on galaxy s2 running android 4.0. impressive results.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -