When Perl Met Android (YAPC::EU 2010)
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

When Perl Met Android (YAPC::EU 2010)

on

  • 7,391 views

These are the slides I used at a lecture in YAPC::EU 2010 about running Perl on the Android mobile device operating system. ...

These are the slides I used at a lecture in YAPC::EU 2010 about running Perl on the Android mobile device operating system.

There is a screencast (audio + video) of it, which will hopefully become available soon.

Statistics

Views

Total Views
7,391
Views on SlideShare
7,391
Embed Views
0

Actions

Likes
2
Downloads
29
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

When Perl Met Android (YAPC::EU 2010) Presentation Transcript

  • 1. When Perl met Android
  • 2. About me
    • Sawyer X
    • 3. Sysadmin / Perl Ninja
    • 4. http://search.cpan.org/~xsawyerx/
    • 5. http://blogs.perl.org/users/sawyer_x/
  • 6. What is Android?
    • GNU/Linux-based operating system
    • 7. Developed by Google for mobile devices
    • 8. Java UI framework.
  • 9. Some statistics
      Smartphone OS first quarter of 2010 in the US:
    • BlackBerry OS holds 36% - 1st place
    • 10. Android holds 28% - 2nd place
    • 11. iOS holds 21% - 3rd place.
    • 12. [NPD Group study]
  • 13. Some more statistics
    • 2nd most popular mobile development target
    • 14. Over 70,000 apps available for Android
    • 15. About 60K Android devices sold daily, about 22M a year
    • 16. About 60% of Android Apps are free compared to iPhone’s 25%
    • 17. U.S. make up 65% of Android devices.
  • 18. Features
    • Free
    • 19. Linux-based
    • 20. Open source
    • 21. Community-driven
    • 22. Pretty UI
    • 23. Well supported
    • 24. Has an emulator.
  • 25. Obstacles
    • Java.
    • 26. Java..
    • 27. Java...
  • 28. Enter SL4A (previously ASE)
    • Scripting Layer for Android
    • 29. (Formerly ASE: Android Scripting Environment)
    • 30. Java bridge between interpreters and Android
    • 31. JSON RPC server
    • 32. Serializes object methods and params to JSON
    • 33. Root required for new interpreters
    • 34. Supports Python, JRuby, Perl, Lua, Javascript...
    • 35. 6 lines for a barcode scanner!
  • 36. Stuff you can do
    • TTS (Text To Speech)
    • 37. Dialogs (input, alert, selections, progress, etc.)
    • 38. GPS, ringer mode, airplane mode, etc.
    • 39. Sensors, vibrators, etc.
    • 40. Data on the phone (contacts, SMS msgs)
    • 41. Run servers in the background
    • 42. (Stevan got Plack running!)
    • 43. (I got Dancer running!)
  • 44. How does the code look?
    • Android.pm (written by Jarkko Hietaniemi)
    • 45. Provides an object
    • 46. Uses AUTOLOAD to provide any API method
    • 47. Returns hash with results (errors, msgs, etc.)
    • 48. use Android;
    • 49. my $droid = Android->new;
    • 50. $droid ->speak( “Hello from Perl!” );
  • 51. GPS-based messaging (Alex Elder)
    • You set GPS coordinates
    • 52. An SMS msg and a contact
    • 53. It sends the SMS when you reach the location
    • 54. Supports tags (such as country name)
    • 55. Roughly 90 lines of code in a single file
    • 56. Would have helped me avoid my first ticket.
  • 57. Where do I start?
    • Download and install Android SDK
    • 58. Create a virtual device
    • 59. Install SL4A
    • 60. Add a Perl interpreter
    • 61. Write your script
    • 62. Upload it to the virtual device
    • 63. Run, Forest... RUUUUUN [the script] !!