pycon 2010 author: sidnei budiman. your average programmer one of the stereotypical 3 guys in a...

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

Upload: leonard-peters

Post on 25-Dec-2015

220 views

Category:

Documents


0 download

TRANSCRIPT

  • Slide 1
  • PyCON 2010 Author: Sidnei Budiman
  • Slide 2
  • 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 SMEs) 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)
  • Slide 3
  • Pictures of us 1 and a half years ago cleaning out and preparing our new office....
  • Slide 4
  • 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
  • Slide 5
  • 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)
  • Slide 6
  • 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
  • Slide 7
  • Files can be downloaded from www.maemo.org (give the exact URL & website) www.maemo.org 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
  • Slide 8
  • 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
  • Slide 9
  • Below is the Console Screen on your device (Looks like your normal python console but on your mobile )
  • Slide 10
  • Running PyS60 on your device Click on applications on your mobile device, select and run the python console Select a script and run it.... Thats 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... Thats it !
  • Slide 11
  • Below are Images of the previous steps described
  • Slide 12
  • 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 dont need to upload your script every time you want to test portions of code
  • Slide 13
  • Below is a screenshot of your terminal emulation script and the device interaction
  • Slide 14
  • Code snippet to access camera Code snippet to access audio recorder Code snippet to play sound Code snippet that uses the Symbian network stack
  • Slide 15
  • Code snippet for camera below:
  • Slide 16
  • Code snippet for sound recording below:
  • Slide 17
  • Code snippet for audio player below:
  • Slide 18
  • Using Ensymble to package your PyS60 Application Specifying Capabilities Open Caps Restricted Caps
  • Slide 19
  • 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
  • Slide 20
  • Slide 21