KEMBAR78
Using Ruby in Android Development | PPTX
Using Ruby for AndroidDevelopment
BackgroundAndroid is a big step forward in mobile operating systemsBut… Java?Dynamic script languages are more productiveAnd don’t have to be too slowFour main ways to leverage Ruby…
Leveraging  Ruby for AndroidScripting: automate phone tasks and testing“From scratch” app development replace JavaFramework developmentLess Ruby, compiled RubyApp integrationFull Ruby via server
Rubotohttp://github.com/rubotoRuboto-core[sudo] gem install ruboto-coreRuboto-core-irbRuboto-demos* Ruboto slides here derived from earlier presentations by Daniel Jackoway.  Apologies for missing attribution in original post.
Android in Rubypublic void Activity.onCreate(Bundle bundle)public void Activity.onPause()public void onClick(View view)handle_create do |bundle|handle_pause dohandle_click do |view|
How It WorksYourActivity < RubotoActivity < ActivityRubotoActivity implements callbacks
They tell Ruby to exec blocks, pass params alongRuby for Scripting: IRBhttp://www.appbrain.com/app/ruboto-irb-%28ruby-on-android%29/org.ruboto.irb
Activities only
Can’t ship .apkRuboto-coreGoals
Anything you can do with Java
Zero Java
Zero XML
Support pluginsRuboto InstallJDK
JRuby (rvm)
Android SDK
Generate an emulator
gem install ruboto-coreRuboto App Generation$ ruboto gen app \
$ --package com.adamblum.andevcon \
$ --path andevcon \    # where app files go
$ --name andevcon \   # Name of app
$ --target android-8 \  # Froyo
$ --activity MyActivity # Name of ActivityRuboto App Generation$ ruboto gen app \

Using Ruby in Android Development