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

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -