has WebView Feature - Android android.webkit

Android examples for android.webkit:WebView

Description

has WebView Feature

Demo Code

import android.content.Context;
import android.content.pm.PackageManager;

public class Main{

    private static boolean hasWebViewFeature(Context context) {
        // Query the system property that determins if there is a functional WebView on the device.
        PackageManager pm = context.getPackageManager();
        return pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW);
    }/*www .j a  va2  s.com*/

}

Related Tutorials