CustomWebView : An extended form of Web Viewer

thank you for you support. I can't set the download path

Just leave it empty.
But still if you want to set path on Android Q and above then you will have to prefix ASD path to folder name.

1 Like

Hi I am wondering if I can use your component, my idea is to use a webviewer to display an ad banner, which when clicked would open an external browser with the ad website

1 Like

You can do that.

Can i show Specific Part of a website

Hi,
I created a small application that can be used to browse several websites using CustomWebView. My problem is that without a link in the code (a target = "_ BLANK" href = "http ......), the application does not open chrome, ff, etc. When I have such a link (a href =" http .. ....) the page opens inside the application. (a href = "mailto: xxxx) works fine and invokes your email client

My question is, can it somehow call an external browser (chrome, ff etc.) from HTML code?

Yes, if you know JavaScript.

You can try creating a custom intent URL.
But the question is why you want to that.

1 Like

hi thank you for the answer
what does custom URL mean ?,

I tried

<a href =
<a target = "_ BLANK" href =
<a target = "_ SELF" href =
<a target = "_ PARENT" href =

why do i need it. I display a simple website on the application, but in the content I want to provide a link to another website, e.g. an online store.

See here:

But you can detect new window request and handle it accordingly so why are you redirecting user to browser.

For the ondownloadneeded block, how do I get it to download said file?

Always read old posts before asking a question:

yeah I looked but that didn't work
I got the error: "Can only download HTTP/HTTPS URIs: blob:https://scratch.mit.edu/9c8c0d8f-f110-43ec-810c-52282eb03639" when trying that

Error is quite clear.
You can download http and https urls only.
You should try removing blob: from download url.

I've tried that too, doesn't give an error rather it just doesn't do anything unless it doesn't go into the downloads folder I can't find it

Which android version are you using?
From Android 10, downloads are saved in your app's asd.

chromebook

Is chromebook similar to Android?

it runs the android version I beleave it does
do you have a URL that will download? just to test if the url is a dud

If so then which android version?

it's 9 from what I could tell