ruboto/ruboto — pull request #208 by donv (2012-07-08 21:46:52+00:00)
Title: Make activity subclass

@ruboto @rscottm @headius @ruboto/team-ruboto-core

This pull request changes the class-based activity definition to define methods on the java class rather than having a separate instance for delegation. It is a simpler setup with fewer objects, but maybe more complex since it requires knowledge of eigenclasses.

The big win is that the Ruby activity object is an instance of android.app.Activity, making it usable for arguments to methods that require an Activity subclass.

Please review and comment. I'll merge in a day or two if there are no objections.

All tests are green, and I added a test for navigating to another activity without a dedicated Java class, using RubotoActivity.