Ruboto

1,088 views
925 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
1,088
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

×