Title: how do i store a static html page in android emulator and later on view it from WebView while running?
Tags: android;android-webview;assets
Question: how do i store a static html page in android emulator and later on view it from WebView while running?


Here is another answer: Here is a good example on how to load a static page into a WebView:
http://code.google.com/p/apps-for-android/source/browse/trunk/Samples/WebViewDemo/

Here is another answer: I think the best way for accomplish your task is to use the assets folder:
Create a toplevel folder named
"assets"
Put your static html files there
Load the html file with somethinh like this:
browser=(WebView)findViewById(R.id.webkit);
browser.loadUrl("file:///android_asset/yourpage.html");

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 2.5', 'CreationDate': '2010:00:12/29/10', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<android><android-webview><assets>', 'Title': 'how do i store a static html page in android emulator and later on view it from WebView while running?', 'ViewCount': 1482, 'id': 4553451, 'user_AboutMe': None, 'user_AccountId': 268337.0, 'user_DisplayName': 'VIVIN JOY', 'user_Reputation': 11.0, 'user_Views': 6.0, 'user_id': 557038.0}}