Update MainActivity.java

Delete code for button and added code for shake detector.
Update activity_main.xml

Delete code for the button