javadoc for connection activity