Example usage for android.webkit GeolocationPermissions getInstance

List of usage examples for android.webkit GeolocationPermissions getInstance

Introduction

In this page you can find the example usage for android.webkit GeolocationPermissions getInstance.

Prototype

public static GeolocationPermissions getInstance() 

Source Link

Document

Gets the singleton instance of this class.

Usage

From source file:Main.java

/**
 * Clear Stored Location permissions. When the geolocation API is used in
 * the WebViewer, the end user is prompted on a per URL basis for whether
 * or not permission should be granted to access their location. This
 * function clears this information for all locations.
 *
 * As the permissions interface is not available on phones older then
 * Eclair, this function is a no-op on older phones.
 *//*  www.  jav  a 2  s  . c  om*/
public static void clearWebViewGeoLoc() {
    GeolocationPermissions permissions = GeolocationPermissions.getInstance();
    permissions.clearAll();
}