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

PyS60 – Python development for your Mobile

  • Upload
    brinda

  • View
    57

  • Download
    0

Embed Size (px)

DESCRIPTION

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) - PowerPoint PPT Presentation

Citation preview

PyCON 2010

PyS60 Python development for your MobilePyCON 2010Author: Sidnei BudimanHi Im Sidnei...Your Average ProgrammerOne of the stereotypical 3 guys in a garage Currently working on building our own companyTwo products in the pipelineConsumer focused Product - (Mobile application)Business focused Product (Subscription based application for SMEs)Will be releasing both in the next two monthsReleasing in the South East Asian region first (because that is where we understand the market more for both our products)Hi Im Sidnei...continuedPictures of us 1 and a half years ago cleaning out and preparing our new office.... Topics of discussionWhat is pyS60Why I decided to do a talk on PyS60How do I get and Install pyS60 on my DeviceHow do I run pyS60 and begin developingCode snippets to access various device resources (Camera, Sound, Network etc)How to package and sign my pyS60 applicationAdvantages and Disadvantages of using pyS60 for developmentDiscussion wrap up

What is PyS60Python implementation for Symbian operating systemsContributed to Symbian when Symbian became open sourceStable versions have been pyS60 1.4.3, 1.9.7 and latest version is 2.0Python 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 PyS60Because its python & this is PyCON Mainly because its a cool, easy to use platform for really, really, really rapid mobile apps developmentEncourage and build a larger user base so Symbian/Nokia understand that there are a lot of potential users and adoptersGet Nokia/Symbian to fix bugs faster Getting and Installing PyS60 on your DeviceFiles can be downloaded from www.maemo.org (give the exact URL & website)File names to download are:PythonRuntime2.0.sis Actual python runtimePIPS.sis POSIX interface into the Symbian OSPythonConsole.sis Python Interactive Console, same as what you get when you install python on your computerNext how to install PyS60 on your deviceGetting and Installing PyS60 on your Device - ContinuedCopy files onto your phone via USBNavigate to the directory and run the installers PIPS.sis, PythonRuntime2.0.sis then PythonConsole.sisConfirm installation was successful by running the console. You should get the following screen

Getting and Installing PyS60 on your Device - ContinuedBelow is the Console Screen on your device (Looks like your normal python console but on your mobile )

How do I run PyS60 and begin developingRunning PyS60 on your deviceClick on applications on your mobile device, select and run the python consoleSelect a script and run it .... Thats it !Develop and run your scripts for PyS60Using your favourite editor write your codePut the code onto your device in the Python directory Select the script from the list of scripts in the python console ... Thats it !

How do I run PyS60 and begin developing continuedBelow are Images of the previous steps describedHow do I run PyS60 and begin developing continuedYou 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 directlyNo 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 codeHow do I run PyS60 and begin developing continuedBelow is a screenshot of your terminal emulation script and the device interaction

Code snippets to access various device resourcesCode snippet to access cameraCode snippet to access audio recorderCode snippet to play soundCode snippet that uses the Symbian network stackCode snippets to access various device resources Camera Code snippet for camera below:

Code snippets to access various device resources Record AudioCode snippet for sound recording below:

Code snippets to access various device resources Audio PlayerCode snippet for audio player below:

How to Package my PyS60 ApplicationUsing Ensymble to package your PyS60 ApplicationSpecifying CapabilitiesOpen CapsRestricted Caps

How to sign my PyS60 ApplicationThe Symbian signed WebsiteSymbian Open SigningLimitationsRegistering for access to open signingHow to open sign your application for testing distributionOther types of signing your PyS60 application

Advantages of using PyS60Disadvantages of using PyS60