Short registerAdapter() example