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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -