Closed erlangparasu closed 7 years ago
Same error here.
Cannot resolve method setListener()....
Well, the setListener
method expects an Activity
or android.app.Fragment
instance in the first argument and an AdvancedWebView.Listener
instance in the second argument, as documented.
The second argument should not be a problem. You simply have to implement that interface in your Activity
or Fragment
class.
For the first argument, the documentation shows that you need to use getActivity()
if you’re using android.support.v4.app.Fragment
.
If the setListener
method cannot be resolved at all, make sure you actually declared the variable holding your WebView instance as AdvancedWebView
and not just WebView
.
i use
android.support.v4.app.Fragment