English 中文(简体)
网页
原标题:Web Page in res/raw/
  • 时间:2012-04-20 04:04:33
  •  标签:
  • android
  • html

我想使用一个网页显示我的内容,因为这样将利用动物群和动物体内的蓄积特征。 我知道,我想在纸张上张贴网页,以便不让人们进入因特网,但我不知道如何从转/转/翻/翻纸。 我能否得到一些帮助? 成就

最佳回答

而是在<代码> 域名上的网页。 然后,当你想要装上该车时,使用该行的法典:

webView.loadUrl("file:///android_asset/myWebPage.html");
问题回答

有一个条件,即我们不能使用<条码>,。 如果我们想要从图书馆项目获得网上通话资源的话。 <代码>assets 并不适用res/raw<>/code>。

根据我所知,从第8号计划开始,以下工作罚款:

webView.loadUrl("file:///android_res/raw/webPage.html");

首先从可提取的Folder处提取,见以下链接,从原始文件夹中获取文档的中间点:

http://www.41post.com/3985/programming/android-loading-files-from-the-assets-and-raw-folders

and Then you can use WebView s loadData method to load html contents in webview.

Other method is to load html file by:

mWebView.loadUrl("file:///android_asset/myfile.html"); 

你们可以从资产组合中编出html档案。

WebView wv;  
wv = (WebView) findViewById(R.id.webView1);  
wv.loadUrl("file:///android_asset/aboutcertified.html");  




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!