Answers for "show html files from firebase android studio"

0

show html files from 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);
Posted by: Guest on June-11-2021

Code answers related to "show html files from firebase android studio"

Browse Popular Code Answers by Language