Mostrar archivos HTML de Firebase Android Studio
WebView webView = (WebView)findViewById(R.id.web_view);
// be cautious before enabling javascript, check security guidelines by google.
//webView.getSettings().setJavaScriptEnabled(true);
webView.setWebViewClient(new WebViewClient(){
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
// on page load started, you may show progress spinner to user.
//progressBar.setVisibility(View.VISIBLE);
super.onPageStarted(view, url, favicon);
}
@Override
public void onReceivedError(WebView view,
WebResourceRequest request, WebResourceError error) {
// ERROR handling
super.onReceivedError(view, request, error);
}
@Override
public void onPageFinished(WebView view, String url) {
// actions on page load
super.onPageFinished(view, url);
}
});
webView.loadUrl(url);
Dangerous Dogfish