posted 8 years ago
Hello!
In MainActivity I have this mWebView which changes loadUrl depending on the user action. I want this to happen from different class too.
and here is how I change loadUrl in MainActivity:
Now, in another class, ItemView, I want to switch to MainActivity but with different mWebView.loadUrl, depending on user action also. Hope you understand.
Here is what I tried in ItemView class:
This switch my app to MainActivity but everytime loadUrl is url1. url2 or url3 opens in system browser.
How can I fix this? I even tried to copy mWebView settings from the MainActivity, without success.
Thanks!