android - Using a Spinner to Change webView -


i have app sends user input website's search url, so:

app

to this, wondering:

  1. how store last webpage visited on each site cache?
  2. how should add website names spinner?
  3. how write code spinner item's click event?

essentially, process of app is:

  1. enter search query
  2. select site spinner load query into
  3. if same site selected again, page should not reload

e.g. user searches "phone" , selects website 1. website 1 loaded. website 2 selected , loaded. website 1 reselected, not reload.

here's need know started webview : here

there's need (according description) :

  • the cangoback() method returns true if there web page history user visit.
  • cangoforward() check whether there forward history. if don't perform check, once user reaches end of history, goback() or goforward() nothing.
  • etc.

for spinner can check this.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -