Update MainActivity.java

do while loop config...