Load html files from raw folder in web view

<>

This question already has an answer here:

Answers


Use this code for Load html files from raw folder in web view:

For more information see the javadoc for WebView:

     public class ViewWeb extends Activity {  
            @Override  
            public void onCreate(Bundle savedInstanceState) {  
                super.onCreate(savedInstanceState);
                setContentView(R.layout.webview);  

                WebView lWebView = (WebView)findViewById(R.id.webView);
                lWebView.loadUrl("file:///android_res/raw/your_file_name.html");
            }  
        }

Need Your Help

Using this inside a static function fails

php oop this static-methods

I have this method that I want to use $this in but all I get is: Fatal error: Using $this when not in object context.

Preferred way to do locales in the Haskell Platform

haskell localization internationalization haskell-platform

The Haskell platform includes two obsolete libraries, old-time and old-locale. For old-time, it also includes the preferred alternative (namely time), but I can't figure out what the recommended