【发布时间】:2016-01-05 04:09:28
【问题描述】:
我想将一个 html 文件及其包含图像和 .css 文件的文件夹从手机内部存储加载到应用程序 android-webview。我已经尝试了很多来自网络的示例,但没有任何效果.. 我是 android 新手。我发现并尝试了类似的东西
private String curURL = "file:///data/data/com.yourproject.example/files/index.html";
webview.loadUrl(curURL);
还有更多。 但即使在我运行应用程序之后,我也无法在手机“com.yourproject.example”中找到路径,并且我已经查看了里面的每个文件夹,因为我想在其中放置这个文件夹“files/index.html”我假设。 我知道这对你们来说很容易,但我没有运气。
【问题讨论】:
标签: android html webview android-webview internal-storage