Modify some code in AndroidActivity