Update App.java

modified from github