WebView Settings Set Database Path - Android User Interface

Android examples for User Interface:WebView

Description

WebView Settings Set Database Path

Demo Code


//package com.java2s;

import android.os.Build;

import android.webkit.WebView;

public class Main {
    @SuppressWarnings("deprecation")
    public static void WebViewSettingsSetDatabasePath(WebView webView,
            String path) {//from   ww w  . j  av  a 2s.co m
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
            webView.getSettings().setDatabasePath(path);
        }
    }
}

Related Tutorials