Android - 无法访问SD卡上的html文件 [英] Android - can not access the html file on sdCard

查看:515
本文介绍了Android - 无法访问SD卡上的html文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Chrome或任何其他网络浏览器(不是html浏览器)中打开我的sdCard上的html文件。



我尝试输入文件路径,如下所示:

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

我得到这个错误:

  ERR_ACCESS_DENIED 

有什么可能是错误的?



编辑:我不得不提,我没有开发一个Android应用程序。我只是想查看一个html文件,这是在我的SD卡上的铬手机浏览器



编辑2:它不是从分机工作。 sdcard以及内部存储器



谢谢。 仅仅是因为Chrome应用程序没有读取外部存储的权限。

如果您需要这样的应用程序这里是一个链接。

这里是一个 chrome应用程序权限列表 ....

您的帐户



  • 添加或移除帐户

  • 使用设备上的帐户

  • 阅读Google服务配置



您的位置


  • 大概位置(基于网络)

  • 精确位置(GPS和基于网络)


    网络通信


    • 查看网络连接
    • ç ontrol Near Field Communication

    • 从互联网接收数据

    • 完全网络访问



    存储


    • 修改或删除USB存储设备的内容b

      $ b

      系统工具


      • 测试访问受保护的存储空间
      • 安装快捷方式



      书签和历史记录
      $ b


      • 编写网页书签和历史记录

      • 阅读您的网络书签和历史记录



      • 相机


        • 视频



        麦克风


        • 录制音频


        影响电池


      • 防止设备进入休眠状态
      • 控制振动
        音频设置




        • 更改您的音频设置


        同步设置


        • 阅读同步统计信息

        • 开启和关闭同步

        • 阅读同步设置


        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.

        解决方案

        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

        这篇关于Android - 无法访问SD卡上的html文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆