more javadoc for mainactivity.