Fix:can't enter main page.I just remove the function
"setHasOptionsMenu".