add some method to MainActivity.java

for example ondestroy()