Here you can see an example of creating WebView for Android. Problem which I had was to load a local file. Simple answer is like this:
mWebView.loadUrl("file:///android_asset/touchEnd/index.html");
Where android_asset is actually assets folder in Android project. To add assets to the Android project, choose view to Android, right click on the app -> New -> Folder -> Assets folder:
Now the whole code can look something like this:
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mWebView = (WebView) findViewById(R.id.activity_main_webview); WebSettings webSettings = mWebView.getSettings(); webSettings.setJavaScriptEnabled(true); mWebView.loadUrl("file:///android_asset/touchEnd/index.html"); }