Tuesday, October 26, 2010

running python on the galaxy 3(or any android phone)

hi,
i am a programmer and what more would i want than a ful-fledged interpreter on my phone. i did install python on my 6220c, but the screen is small and typing is a lot of work. however it has scripts support so that i can always run scripts made on my laptop and transfer them to the phone (or just use the hyperterminal to invoke the interpreter on the phone).
back to where i began... to install python you need to first install sl4a(scripting layer for android) which is available on the android website or in the market. after installation, start the app. then go to options(left button)> view> interpreters> add. now select the interpreter you want to install. u can install the bean shell 2.0b4, jruby-1.4,lua-5.1.4,php-5.3.3,python-2.6.2 or rhino- 1.7R2 on the galaxy 3 using this option. now let the app do its thing, which involves downloading and installing libraries, packages etc.
once the installation is complete, start the sl4a app. now u may see a list of python scripts. u can either execute any of them or run your own. now options>view>interpreters. select the python interpreter. you should now be good to go.

if you face any issues doing this, please mail me at vamsi(at)vamspace(dot)net

No comments:

Post a Comment