Check Url completely loaded Webview

I want to show a progressBar till all resources are loaded. I’ve tried below code, but progressBar will go off when resources starts loading. dataBinding.webviewGallery.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if (!loadingFinished) { redirect = true; } return false; } @Override public void onPageStarted(WebView view, String url, Bitmap favicon) {…

Details

How Can I Get String for another class in Android?

I need to get the string variable from one class of my project to another class, How Can I get hashKey show in MainActivity class public class Functions{public static void printHashKey(Context pContext) { try { PackageInfo info = pContext.getPackageManager().getPackageInfo(pContext.getPackageName(), PackageManager.GET_SIGNATURES); for (Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance(“SHA”); md.update(signature.toByteArray()); hashKey = new String(Base64.encode(md.digest(),…

Details