Advertisement

When Perl Met Android (YAPC::EU 2010)

xSawyer
Aug. 11, 2010
Advertisement

More Related Content

Advertisement

When Perl Met Android (YAPC::EU 2010)

  1. When Perl met Android
  2. Sysadmin / Perl Ninja
  3. http://search.cpan.org/~xsawyerx/
  4. http://blogs.perl.org/users/sawyer_x/
  5. Developed by Google for mobile devices
  6. Java UI framework.
  7. Android holds 28% - 2nd place
  8. iOS holds 21% - 3rd place.
  9. [NPD Group study]
  10. Over 70,000 apps available for Android
  11. About 60K Android devices sold daily, about 22M a year
  12. About 60% of Android Apps are free compared to iPhone’s 25%
  13. U.S. make up 65% of Android devices.
  14. Linux-based
  15. Open source
  16. Community-driven
  17. Pretty UI
  18. Well supported
  19. Has an emulator.
  20. Java..
  21. Java...
  22. (Formerly ASE: Android Scripting Environment)
  23. Java bridge between interpreters and Android
  24. JSON RPC server
  25. Serializes object methods and params to JSON
  26. Root required for new interpreters
  27. Supports Python, JRuby, Perl, Lua, Javascript...
  28. 6 lines for a barcode scanner!
  29. Dialogs (input, alert, selections, progress, etc.)
  30. GPS, ringer mode, airplane mode, etc.
  31. Sensors, vibrators, etc.
  32. Data on the phone (contacts, SMS msgs)
  33. Run servers in the background
  34. (Stevan got Plack running!)
  35. (I got Dancer running!)
  36. Provides an object
  37. Uses AUTOLOAD to provide any API method
  38. Returns hash with results (errors, msgs, etc.)
  39. use Android;
  40. my $droid = Android->new;
  41. $droid ->speak( “Hello from Perl!” );
  42. An SMS msg and a contact
  43. It sends the SMS when you reach the location
  44. Supports tags (such as country name)
  45. Roughly 90 lines of code in a single file
  46. Would have helped me avoid my first ticket.
  47. Create a virtual device
  48. Install SL4A
  49. Add a Perl interpreter
  50. Write your script
  51. Upload it to the virtual device
  52. Run, Forest... RUUUUUN [the script] !!
Advertisement