android: Pass local and remote identities as settings of a connection