Update MainActivity.java

Removed unused code for example