Jump to content
Info
  • Welcome to PhCyber
  • Explore and Enjoy Browsing!
  • Lots of useful topics
  • Stay active and receive prizes
SuperVegita1

Webview Android Java Code

Recommended Posts

package example.weview

  

import android.support.v7.app.AppCompatActivity;  

import android.os.Bundle;  

import android.webkit.WebView;  

  

public class MainActivity extends AppCompatActivity {  

  

    @Override  

    protected void onCreate(Bundle savedInstanceState) {  

        super.onCreate(savedInstanceState);  

        setContentView(R.layout.activity_main);  

        WebView mywebview = (WebView) findViewById(R.id.webView);  

     

  

        mywebview.loadUrl("file:///android_asset/eut.html");  

    }  

}  


Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...