Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open HTML file on Android [duplicate]

There are some topics about this question but they are old and I can't believe there isn't a solution for this.

I have made an HTML file and placed it in the Download directory from Android.

When I try to open the file in Chrome, Firefox or Opera I get an error: file:///storage/emulated/0/Download/mysite.html

We are living in 2021 and I can't believe this isn't possible.

Maybe Tasker can help?

like image 662
WJ496582 Avatar asked Nov 18 '25 05:11

WJ496582


1 Answers

3 Options that can work, depending of the content of your file:

  1. You can use a local web server in your Android phone itself. There are many server apps out there in the Play Store, one such app is Simple HTTP Server.
  2. You can put your documents into the folder Android/data/com.android.chrome/files/Download/ in the internal storage. It's absolute path is /storage/emulated/0/Android/data/com.android.chrome/files/Download/ or /sdcard/Android/data/com.android.chrome/files/Download/. This is the location where Chrome stores any downloaded files and therefore, this is the only location where Chrome can access the files. But remember, uninstalling Chrome will delete this directory.
  3. Also you can download a HTML Viewer to open your file.
like image 170
Etienne Kaiser Avatar answered Nov 19 '25 21:11

Etienne Kaiser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!