block ads in a webview

Everything about using Adblock Browser on Android
Post Reply
Ekrem
Posts: 5
Joined: Thu Apr 21, 2016 4:15 pm

block ads in a webview

Post by Ekrem »

Hi everyone,

I am trying to block ads in an android webview. The think that , i dont only show one website, so i am not able to block ads from a JavaScript injection.
Adblock is so useful , and I believe there should be a adblock library which will block ads in a webview.

Can anyone help me ?

Regards
rach
Posts: 310
Joined: Tue Nov 17, 2015 10:05 am

Re: BLOCK ADS IN A WEBVIEW

Post by rach »

Hey Ekrem!

Thanks for reaching out to us.
Could you send us a screenshot of the ads you are not able to block and the link of the website?
Also, what is your device and Android version?
Hope to be able to help.
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: BLOCK ADS IN A WEBVIEW

Post by lewisje »

I believe this is something for the Adblock Plus app, rather than the Adblock Browser, which does not filter ads in other apps.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Ekrem
Posts: 5
Joined: Thu Apr 21, 2016 4:15 pm

Re: BLOCK ADS IN A WEBVIEW

Post by Ekrem »

First of All ,Thank you for your answers.

I am building my own app, and in that app i wanna block ads. There was a misunderstanding, sorry for that , my bad...
Ekrem
Posts: 5
Joined: Thu Apr 21, 2016 4:15 pm

Re: BLOCK ADS IN A WEBVIEW

Post by Ekrem »

Hi all,

Any news ?
rach
Posts: 310
Joined: Tue Nov 17, 2015 10:05 am

Re: BLOCK ADS IN A WEBVIEW

Post by rach »

Hey Ekrem!

Could you send us the info from the previous message
Thanks! :)
Ekrem
Posts: 5
Joined: Thu Apr 21, 2016 4:15 pm

Re: BLOCK ADS IN A WEBVIEW

Post by Ekrem »

Hi Rach,

Thank u for your post.

But i guess, i couldn't explain :)

In an android Webview, i am showing websites. Not only one specific, but any websites. Normally in a browser, or Adblock browser it will be blocked. But I need to block ads in my application by embed adblock library file in the project. So what I thought, there might be a adblock jar library file that i can use it in the application.

Regards
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: block ads in a webview

Post by lewisje »

I don't think there's a .jar file, but if you know how to make one from the Adblock Browser source code, dig in: https://hg.adblockplus.org/adblockbrowser/file

It's probably not helpful, because the Adblock Browser for Android is based on Firefox, rather than using a typical WebView.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Ekrem
Posts: 5
Joined: Thu Apr 21, 2016 4:15 pm

Re: block ads in a webview

Post by Ekrem »

I see lewisje,

I hope one day we will have a library by Adblock.
It will be so useful for programmers
Post Reply