Update MainActivity.java

event listener and toast