Home » Java » I want to block the web image from Android Chromium

I want to block the web image from Android Chromium

Posted by: admin May 17, 2018 Leave a comment

Questions:

enter image description here

The codes used in 'Webview' are as follows.

webSettings.setLoadsImagesAutomatically(false); // Image block code

How do you apply the same option in Android Chromium?

I kept looking inside the source but couldn’t find it.

PrefServiceBridge prefService = PrefServiceBridge.getInstance(); 

prefService.setContentSettingEnabled(ContentSettingsType.CONTENT_SETTINGS_TYPE_IMAGES, false);

I tried the above source but it didn’t work.

Answers: