Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - can not access the html file on sdCard [closed]

I am trying to open html file that I have on my sdCard in Chrome or any other web browser (not html Viewer).

I have tried to enter path to file like this

 file:///storage/extSdCard/page/page.html

I get this error:

 ERR_ACCESS_DENIED

What could be wrong please?

EDIT: I have to mention that I am not developing a android app. I just want to view a html file, that is on my SD card in chrome mobile browser

EDIT2: It is not working from ext. sdcard and also from internal memory

Thank you.

like image 211
user2886091 Avatar asked Dec 16 '22 01:12

user2886091


1 Answers

This is simply happening because the chrome app doesn't have the permission to read the external storage.
if you need such an app here is a link.
Here is a list of chrome app permissions....

Your accounts

  • find accounts on the device
  • add or remove accounts
  • use accounts on the device
  • read Google service configuration

Your location

  • approximate location (network-based)
  • precise location (GPS and network-based)

Network communication

  • view network connections
  • control Near Field Communication
  • receive data from Internet
  • full network access

Storage

  • modify or delete the contents of your USB storage

System tools

  • test access to protected storage
  • install shortcuts

Bookmarks and History

  • write web bookmarks and history
  • read your Web bookmarks and history

Camera

  • take pictures and videos

Microphone

  • record audio

Affects battery

  • prevent device from sleeping
  • control vibration

Audio settings

  • change your audio settings

Sync Settings

  • read sync statistics
  • toggle sync on and off
  • read sync settings
like image 196
SMR Avatar answered Jan 07 '23 23:01

SMR