-1

Is there a way to use HTML kept in the device storage as we do for XML in the package?

Ed UK
  • 3
  • 4

1 Answers1

0

If you need to use this HTML again and again then it would be better if you store that html file in assets folder and render in web view from there like this

WebView view = new WebView(this);
view.getSettings().setJavaScriptEnabled(true);
view.loadUrl("file:///android_asset/hello.html");
setContentView(view);
Ahmad Ayyaz
  • 774
  • 8
  • 25