android - How to know what view is in the same context than other -


i have class have list 3 webview different activities

public class class {   private list<webview> webviews;      .     .     .  public void bindonclickevent(actionmethod amethod, view control){         control.setonclicklistener(new onclicklistener() {          @override         public void onclick(view v) {              //here need know webview in webviews in same context view control              //webview.loadurl("javascript:myjsfunction(\'"+s+"\');");                                        }     }); } } 

i need use inside of method onclick(view v) webview (that can found in list "webviews") in same context parameter view v.

any idea?

thanks!

view has method getcontext(). should able compare contexts determine views belong activitys.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -