android - Using a Spinner to Change webView -
i have app sends user input website's search url, so:
to this, wondering:
- how store last webpage visited on each site cache?
- how should add website names spinner?
- how write code spinner item's click event?
essentially, process of app is:
- enter search query
- select site spinner load query into
- 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
Post a Comment