How do you make localhost use any file path?

Please help me How to make localhost use any file path.

What do you mean by localhost ?

Localhost menes by run custom html or css file use webviewer.
Like : sdcard/folder/index.html

OK. The http://localhost/ url is provided to access html files from the assets, and for this to work when in development mode and a compiled app.

That is all it does, and all you can use it for, as far as I know.

Other files in the assets can be accessed by the html file using relative file paths (that is no file path just the file name)

e.g.

<link rel="stylesheet" href="mystylesheet.css" />
1 Like

Not that..
I will run the HTML file on webviewer

Yes, so would I....

Perhaps, to keep things simple, in the current setup with API 30 / Android 11, you can easily access files in assets or in your ASD. If you have an html file in your ASD, with other associated files, these should run OK in a webviewer.

I want to know if you know it

Please provide a more detailed explanation of what you are trying to achieve, then perhaps we can help you better. Show any relevant blocks if they will help.

I well try

As far as I'm concerned, that's the only way to run imported .html files on vanilla AI2.