按着例子给自己的程序添加了启动浏览器的功能。
启动http://的完全没有问题,启动file://就总是异常
最后发现问题出在了Android 浏览器的配置文件上
自己的调用程序:
Uri uri = Uri.parse("file://data/data/test.html");
Intent it = new Intent(Intent.ACTION_VIEW, uri);
context.startActivity(it);
Android 浏览器的配置文件:
packages/apps/Browser/AndroidManifest.xml
<!-- For these schemes were not particular MIME type has been
supplied, we are a good candidate. -->
<intent-filter>
&nbs