Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Ruboto

1,212 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Ruboto

  1. 1. RubotoRuby on Android Ehthisham
  2. 2. The ruboto-core build processRuboto java files Compiled Jruby class files JARS Compiled Ruby .dex scripts APK
  3. 3. ruboto-irb
  4. 4. ruboto-core• Means of packaging Ruby scripts for Android as an .apk• http://github.com/ruboto• gem install ruboto-core
  5. 5. Generating app$ ruboto gen app --package com.my.app --path myapp --nameMyApp--target android-8 --activity MyActivity• --package: provides the unique Android package name.• --path: which folder• --name: name of the app• --target: which android version to compile against.• --activity: generates android activity.
  6. 6. $ rake install
  7. 7. Javap.v Activity.onCreate(Bundle bundle) import android.widget.Toast;p.v Activity.onPause() Toast toast = Toast.makeText(p.v Activity.onClick(View view) getApplicationContext(), “Hello!", Toast.LENGTH_SHORT ); toast.show(); Rubyon_create (bundle) import android.widget.Toaston_pause Toast toast = Toast.makeText(@handle_click = proc do |view| $activity, “Hello!", Toast::LENGTH_LONG ).show
  8. 8. Resourceshttps://github.com/ruboto/ruboto/wiki/Getting-started-with-Rubotohttps://github.com/ruboto/ruboto/wiki/Tutorials-and-exampleshttp://www.ibm.com/developerworks/web/library/wa-ruby/#resourceshttp://rubysource.com/ruboto-rubys-and-androids-first-born/ Thank you

×