How to launch browser to open local file

前端 未结 7 1289
孤街浪徒
孤街浪徒 2020-12-10 05:20

I\'m trying to send intent to browser to open local file. I wish to use default browser to open this file.

if(file.exists()){
  Log.d(TAG, \"file.exists\");         


        
7条回答
  •  悲哀的现实
    2020-12-10 06:11

    The problem is that the new activity has no access to the html page inside your app since it is a different app and it has no permissions to do so.

提交回复
热议问题