load Content using WebView - Android User Interface

Android examples for User Interface:WebView

Description

load Content using WebView

Demo Code


//package com.java2s;

import android.content.Context;

import android.webkit.WebView;

public class Main {
    public static void loadContent(Context mContext, WebView webview,
            String content) {/*from   w w  w  .  j ava  2s .  c  o m*/
        final String mimeType = "text/html";
        final String encoding = "UTF-8";

        webview.loadDataWithBaseURL("", content, mimeType, encoding, "");
    }
}

Related Tutorials