Code example for GeolocationPermissions.Callback

Methods: invoke

0
		//when something that might impact a browser UI happens. 
		webView.setWebChromeClient(new WebChromeClient() {
			@Override 
			public void onGeolocationPermissionsShowPrompt(String origin,
					Callback callback) {
				callback.invoke(origin, true, false);
			} 
 
			@Override 
			public void onExceededDatabaseQuota(String url,
					String databaseIdentifier, long quota,
					long estimatedDatabaseSize, long totalQuota,
					QuotaUpdater quotaUpdater) {
				// TODO Auto-generated method stub 
				super.onExceededDatabaseQuota(url, databaseIdentifier, quota,
						estimatedDatabaseSize, totalQuota, quotaUpdater);
			} 
		}); 
 
		// make sure the web view fills the viewable area 
		webView.setLayoutParams(new LinearLayout.LayoutParams(