0
Intent mhelp = new Intent();
Uri uri = Uri.parse("file:///android_asset/help.html");
mhelp.setData(uri);
mhelp.setAction("android.intent.action.VIEW");
mhelp.setClassName("com.android.browser", "com.android.browser.BrowserActivity");
startActivity(mhelp);

这是我的代码,我将 HTML 文件放在/assets/help.html. 但是当我运行程序时看到了“The requested file was not found.help.html”的消息。

我不想使用 WEBVIEW 小部件。

4

0 回答 0