how to display current webview in android -


i have 3 webviews displaying query result search string 3 search engines.. if google displayed, have yahoo , ask buttons @ bottom....when click either of them, results entered query...

                    if(btn2.gettext()=="yahoo")         {             wv2.loadurl("http://search.yahoo.com/bin/search?p="+value);             vf.setdisplayedchild(1);             system.out.println("yahoo working");             btn1.settext("ask");             btn2.settext("google");         }          else if(btn2.gettext()=="ask")         {             wv3.loadurl("http://www.ask.com/web?q="+value);             vf.setdisplayedchild(2);             system.out.println("ask working");             btn1.settext("google");             btn2.settext("yahoo");         }         else if(btn2.gettext()=="google")         {                wv1.loadurl("http://www.google.com/search?q="+value);             vf.setdisplayedchild(0);             system.out.println("google working");             btn1.settext("yahoo");             btn2.settext("ask");         }    

with above code, each time press buttons @ bottom, getting query results regenerated,,,,i want display result if select any.... ex: google results displayed search string "facebook" , selected first result in that....suppose select yahoo button @ bottom, yahoo displayed , have google button formed @ bottom....when click google button, want first result selected previously...kindly suggest changes make in above code

use method:


webview.geturl() on each button click.and url in string , load in url in webview.


but mention here take relevant webview method means yahoo may u take webview1 this.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -