Added example of taking input from a view rather than the activity.