Load Url within the WebView Onclick Android -
How do I click the button on my webview? I tried this code but it opens the URL in the default browser, I want to open the URL in the same webview.
Public Zero OpenNew Activity (see View) {Intent to myWebLink = New Intent (android.content.Intent.ACTION_VIEW); MyWebLink.setData (Uri.parse ("http://google.com")); StartActivity (myWebLink); }
I also tried it, it works fine! But it inspires me to take an application and when I press the back button, it works
public null openNewActivity (see view) {intent to myWebLink = new intent (android.content .intent.ACTION_VIEW); MWebView.loadUrl ("http://google.com"); StartActivity (myWebLink); }
This works for me
Public Zero OpenNewActivity (see view) {myWebLink = new intent (android.content.Intent.ACTION_VIEW); MWebView.loadUrl ("http://google.com"); }
Comments
Post a Comment