Update MainActivity.java

Remove nested try/catch