1 / 21

PyS60 – Python development for your Mobile

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)

brinda
Télécharger la présentation

PyS60 – Python development for your Mobile

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PyS60 – Python development for your Mobile PyCON 2010 Author: Sidnei Budiman

  2. 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)

  3. Hi I’m Sidnei...continued Pictures of us 1 and a half years ago cleaning out and preparing our new office.... 

  4. 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

  5. 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)

  6. 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 

  7. 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

  8. 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>

  9. 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>

  10. 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 !

  11. How do I run PyS60and begin developing continued Below are Images of the previous steps described

  12. 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

  13. 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>

  14. 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

  15. Code snippets to access various device resources – Camera Code snippet for camera below: <put image of camera code here>

  16. Code snippets to access various device resources – Record Audio Code snippet for sound recording below: <put image of recording code here>

  17. Code snippets to access various device resources – Audio Player Code snippet for audio player below: <put image of audio player code here>

  18. How to Package my PyS60 Application • Using Ensymble to package your PyS60 Application • Specifying Capabilities • Open Caps • Restricted Caps • <Show screenshot of Ensymble>

  19. 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>

  20. Advantages of using PyS60

  21. Disadvantages of using PyS60

More Related