-3

I need few helps in android. i'm new to android

  1. how to add menu/options bar to android webview? so that, when i click a button, it directly goes to another website in the same webview.

what should i do so this happens? 2. when i click back button, it must go to history/ back of visited website instead of closing the app.

  1. syntax for refreshing the page a user is on.

  2. transparent icons or image on top of the page, so when clicked, goes forward and backward.

  • These all are different questions and you can easily find them if you google them one by one. – Darpan Oct 09 '14 at 10:34
  • i cant get it easily. that is why am asking here. – Akhil Thachirukudy Oct 09 '14 at 17:18
  • negative votes again? and no comments so far why negative comments? A newbie doesn't know how to ask a quality question. So one should help him first before negative vote. @akhil : I will help you out here. But do proper RnD before asking. – Darpan Oct 09 '14 at 19:01
  • thanks a lot bro. I maynot know to ask a quality question, but im newbie and im just asking what all i want to know thats it. – Akhil Thachirukudy Oct 10 '14 at 00:56
  • But your answers should show enough efforts from your side as well, this question indicates that you straight away need code, doesn't show your efforts. – Darpan Oct 10 '14 at 06:36

1 Answers1

0

For point 1. For OptoinsBar, Check here, For menu, check here

For point 2. check this answer

For point 3. Refreshing a page only needs calling wbView(Your_url_here); again. Don't know what you mean from 'when user is on'.

For point 4. Show a button over Webview. And on their onClick. call wbView.goBack() or goForward() method.

I just googled all your points one by one, and reached to this answer.

Community
  • 1
  • 1
Darpan
  • 5,623
  • 3
  • 48
  • 80
  • by when user is on..i meant.. on the website/page user is on... ie how to reload a page from a button? – Akhil Thachirukudy Oct 10 '14 at 05:50
  • it will be visible, and by calling 'loadURL();` you will reload. This is how I interpreted your question. – Darpan Oct 10 '14 at 06:33
  • ok.. My app is almost over thanks to Darpan. I need assistance on two more things. – Akhil Thachirukudy Oct 10 '14 at 11:25
  • ok.. My app is almost over thanks to Darpan. I need assistance on two more things. 1. The options menu is shown only when i click 'menu' button. i need to display menu on the top, so that i can open it with menu option and clicking on options icons(3 vertical dots on top bar) for phones with no menu bar.. 2. i want to assign a webpage to those options in menu. how should i do? 3. how do i use onClick option.? – Akhil Thachirukudy Oct 10 '14 at 11:31