Android code for Java Trouble