Android Webview can't load captured image in Android 5+? But its work on some devices

I followed this to capture images from web browsing and uploading

I got a page reload error after image capture

After adding this

if ((savedInstanceState == null)&&(URLUtil.isValidUrl(url))) { webView.loadUrl(url); } 

Works great on some devices ....

But for some devices, I get this error. My webpage is not responding. After capturing the image, I get the error net::ERR_CACHE_MISS

But on some devices it works fine, can it be android 5x or 6x work fine and the file is downloaded using the Capture Camera Camera ...

Please help me like that

Update 1

I gave it like that

 if((savedInstanceState == null)) { mWebView.loadUrl(url); } else { mWebView.loadUrl("https://cdn3.iconfinder.com/data/icons/no-network-icons/512/No_Network_an-512.png"); } 

So, I understand that Aftere Capture is not working. Now nothing is loading. After adding Else .... This will be the link ...

Please help me with this. This error only occurs on some Remaning devices. They work fine, please help me.

+5
source share

Source: https://habr.com/ru/post/1259201/


All Articles