This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I started learning Android recently and created a project just for my testing.
The main page will be LoginPage.java, which has a submit button.
When the submit button is clicked, it will bring up WebPage.java (which has a WebView object to display the http site).
Until this point, everything looks ok.
But then I want to create a Menu in the WebPage view, where I can go back to the LoginPage view.
I override the onCreateOptionsMenu() and the onOptionsItemSelected().
But what shows up is the original default menu from the Android phone.
I'm wondering if anyone has any advice? Thanks in advance for all the help.
Below is my code: LoginPage.java + webPage.java