Update MainActivity.java

This class uses GET method..POST method is done separately.