set up my activity for java 2