How to avoid all the pictures from loading, in WebView?
Also I need to get the URL of those pictures.
Thanks in advance!
How to avoid all the pictures from loading, in WebView ? Also I need
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are developing for API level 11 or later, you can use the
WebViewClient.shouldInterceptRequestto handle the request for loading an image. The second parameter of the method is the URL of the resource.You would have to return the
WebResourceResponseobject, possibly a placeholder/error image if you do not want the original image to be loaded.