update MainActivity.java file