Update MyActivity.java

System.exit(0) causes a loop. Switched to finish().