I am trying to redirect the current html page on screen to another html file, both files share the same location.
I know there are a lot online about this info but it is not working for me, my app just crashed
The app loads the html file from the .java file in android by using this code:
WebView view = new WebView(this);
view.getSettings().setJavaScriptEnabled(true);
view.loadUrl("file:///android_asset/htmlfile.html");
setContentView(view);
Here is what i have tried
<p class="btn animated fadeIn"><a href='android_asset/home.html' class="btn animated fadeIn">GO!</a></p>
I have also tried to use a form onclick
<form>
<input type="button" value="GO!" onclick="file:///android_asset/home.html" />
</form>
Help is appreciated