Moved business logic out of Android listener classes