show html files from firebase android studio

Solutions on MaxInterview for show html files from firebase android studio by the best coders in the world

showing results for - "show html files from firebase android studio"
Maximilian
31 Nov 2016
1    WebView webView = (WebView)findViewById(R.id.web_view);
2     // be cautious before enabling javascript, check security guidelines by google.
3    //webView.getSettings().setJavaScriptEnabled(true);
4    webView.setWebViewClient(new WebViewClient(){
5
6        @Override
7        public void onPageStarted(WebView view, String url, Bitmap favicon) {
8            // on page load started, you may show progress spinner to user.
9            //progressBar.setVisibility(View.VISIBLE);
10            super.onPageStarted(view, url, favicon);
11        }
12
13        @Override
14        public void onReceivedError(WebView view,
15            WebResourceRequest request, WebResourceError error) {
16            // ERROR handling
17            super.onReceivedError(view, request, error);
18
19        }
20
21        @Override
22        public void onPageFinished(WebView view, String url) {
23            // actions on page load
24            super.onPageFinished(view, url);
25        }
26
27    });
28    webView.loadUrl(url);
29