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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -