Clean up MainActivity by upgrading anonymous listener.
Merge pull request #53 from cauchymop/non-anonymous-listener

Clean up MainActivity by upgrading anonymous listener.