1
我正在开发一个android应用程序,它应该在启动时打开html 5文件。我做的是如何复制并运行Android手机内存中的html5文件?
- 我保存完整的HTML应用程序在Android资产文件夹下。
我不能运行使用资产的路径在外部浏览器的HTML文件夹直接,之后我用
Intent browserIntent = new Intent("android.intent.action.VIEW", Uri.parse("file:///android_assets/mobile/index.html")); startActivity(browserIntent);
抛出异常的代码。
- 我把这个文件夹发送到手机的内存,并从那里我想运行它。
Qn 1.如何将文件发送到手机内存?
Qn 2.我可以从手机内存中运行该HTML文件吗?
是否可以这样做?
你能在这里提供例外吗? – Nick 2012-02-13 11:35:04
java.lang.RuntimeException:无法启动活动ComponentInfo android.content.ActivityNotFoundException:未找到活动 句柄Intent {act = android.intent.action.VIEW dat = file:/// android_assets/mobile/index。 html} – wolverine 2012-02-13 12:37:41