210 likes | 330 Views
PyS60 – Python development for your Mobile. PyCON 2010 Author: Sidnei Budiman. Hi I’m Sidnei. Your Average Programmer One of the stereotypical 3 guys in a garage Currently working on building our own company Two products in the pipeline Consumer focused Product - (Mobile application)
E N D
PyS60 – Python development for your Mobile PyCON 2010 Author: Sidnei Budiman
Hi I’m Sidnei... • Your Average Programmer • One of the stereotypical 3 guys in a garage Currently working on building our own company • Two products in the pipeline • Consumer focused Product - (Mobile application) • Business focused Product – (Subscription based application for SME’s) • Will be releasing both in the next two months • Releasing in the South East Asian region first (because that is where we understand the market more for both our products)
Hi I’m Sidnei...continued Pictures of us 1 and a half years ago cleaning out and preparing our new office....
Topics of discussion What is pyS60 Why I decided to do a talk on PyS60 How do I get and Install pyS60 on my Device How do I run pyS60 and begin developing Code snippets to access various device resources (Camera, Sound, Network etc) How to package and sign my pyS60 application Advantages and Disadvantages of using pyS60 for development Discussion wrap up
What is PyS60 Python implementation for Symbian operating systems Contributed to Symbian when Symbian became open source Stable versions have been pyS60 1.4.3, 1.9.7 and latest version is 2.0 Python implementation for pyS60 2.0 is python 2.5 (Not the latest stable but does the job in most cases)
Why do a talk on PyS60 Because its python & this is PyCON Mainly because its a cool, easy to use platform for really, really, really rapid mobile apps development Encourage and build a larger user base so Symbian/Nokia understand that there are a lot of potential users and adopters Get Nokia/Symbian to fix bugs faster
Getting and Installing PyS60 on your Device • Files can be downloaded from www.maemo.org (give the exact URL & website) • File names to download are: • PythonRuntime2.0.sis – Actual python runtime • PIPS.sis – POSIX interface into the Symbian OS • PythonConsole.sis – Python Interactive Console, same as what you get when you install python on your computer • Next how to install PyS60 on your device
Getting and Installing PyS60 on your Device - Continued Copy files onto your phone via USB Navigate to the directory and run the installers PIPS.sis, PythonRuntime2.0.sis then PythonConsole.sis Confirm installation was successful by running the console. You should get the following screen <display pys60 console>
Getting and Installing PyS60 on your Device - Continued Below is the Console Screen on your device (Looks like your normal python console but on your mobile ) <PUT SCREEN SHOT HERE>
How do I run PyS60and begin developing • Running PyS60 on your device • Click on applications on your mobile device, select and run the python console • Select a script and run it .... That’s it ! • Develop and run your scripts for PyS60 • Using your favourite editor write your code • Put the code onto your device in the Python directory • Select the script from the list of scripts in the python console ... That’s it !
How do I run PyS60and begin developing continued Below are Images of the previous steps described
How do I run PyS60and begin developing continued • You can test and write lines of code onto your device from your computer and laptop via the console module and terminal emulation. • Useful because: • You can test specific phone features directly • No need to type on a phone keypad to test a certain function (nightmare & makes you MAD !) • Saves time so you don’t need to upload your script every time you want to test portions of code
How do I run PyS60and begin developing continued Below is a screenshot of your terminal emulation script and the device interaction <show an image of the phone taking a picture and the code on the terminal emulation screen>
Code snippets to access various device resources Code snippet to access camera Code snippet to access audio recorder Code snippet to play sound Code snippet that uses the Symbian network stack
Code snippets to access various device resources – Camera Code snippet for camera below: <put image of camera code here>
Code snippets to access various device resources – Record Audio Code snippet for sound recording below: <put image of recording code here>
Code snippets to access various device resources – Audio Player Code snippet for audio player below: <put image of audio player code here>
How to Package my PyS60 Application • Using Ensymble to package your PyS60 Application • Specifying Capabilities • Open Caps • Restricted Caps • <Show screenshot of Ensymble>
How to sign my PyS60Application • The Symbian signed Website • Symbian Open Signing • Limitations • Registering for access to open signing • How to open sign your application for testing distribution • Other types of signing your PyS60 application • <Take screenshot of the Symbiansigned website>