After dissecting the demos that come with Ruboto 0.2 and figuring out how to upload a library and runner script to an Android emulator (hint: “$ adb push . /sdcard/jruby/subdirname”), it only took an hour or so to create a working Ruby On Acid demo. And what worked on the emulator immediately worked when uploaded to the phone.
I do get a “bitmap size exceeds VM budget” error after the fourth run or so of the script, which persists until Ruboto is unloaded from memory. Calling Bitmap.recycle() in the handle_stop callback doesn’t seem to help. Gonna have to figure all that out before this is ready for prime time. Pretty damn sweet considering I once doubted I could ever use Ruby on the phone, though.
Update 2010-06-03: At Charlie Nutter’s request, I created an all-in-one script suitable for demoing. Point your phone here and open the link with Ruboto (0.2 or later), give it a moment to load, then choose Execute: acid.rb Startup is a bit slow; I’ll have to see if that can be improved for future scripts.