Friday, December 14, 2007

How to prepare Phyton environment in your Nokia smartphone?

While Java and Symbian C++ are powerful programming languages, their learning curves are too steep for most smartphone users. Most users do not need a full-blown programming platform to develop small hacks for their phone. A scripting language is the perfect tool to automate simple tasks and perform simple logical processing.

Python is a widely used scripting language in the computer world. It is easy to learn and supports object-oriented program construction. Nokia provides support for Python on most of its Series 60 devices.

Speaking of running scripting languages on Nokia Series 60 smartphones, there is an unsupported Symbian port for Perl 5.8x and 5.9.x. You can find the installation package and usage instructions from this mailing list posting from a Nokia engineer: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2005-04/msg00439.html.


The current Nokia phones do not come with the Python runtime environment preinstalled. You have to download and install Python yourself.
You can download the Python for Series 60 package from the Forum Nokia web site under the Series 60 Platform Tools and SDKs category. The download package is a zip file with the .sis installation files, documentation, and example code. Make sure you read the Getting Started document in the download bundle to choose the correct .sis file for your phone. Then, you need to install the extracted .sis file to the phone, following the instructions in "Run Symbian Applications". The .sis file installs the following components to the phone:
  • A Python language interpreter
  • The necessary libraries (DLL files) to run Python applications
  • A plug-in for the phone to recognize Python scripts and Python libraries downloaded from the Internet or embedded in incoming messages
Once the Python runtime is successfully installed, a Python icon appears in the Main menu.

No comments: