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

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

When Perl Met Android (YAPC::EU 2010)

6,030

Published on

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.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
6,030
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
31
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

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
  • 25. Obstacles
  • 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] !!

×