Code example for GeolocationPermissions.Callback

Methods: invoke

0
		// TODO Auto-generated method stub 
		super.onGeolocationPermissionsShowPrompt(origin, callback);
		callback.invoke(origin, true, false);
		} 
 
// Commented out this method, because the console messages and JavaScript 
// errors are logged anyway, and we don't want double output. 
// 
//		/** 
//		 * Report a JavaScript error message to the host application. 
//		 * 
//		 * TODO: Move to a separate file and load conditionally, like the 
//		 * Bluetooth class, since this method is available from API level 7. 
//		 */ 
//		@Override 
//		public void onConsoleMessage(String message, int lineNumber, String sourceID) 
//		{ 
//			Log.i("@@@ MoSync", 
//				"MoSyncWebChromeClient.onConsoleMessage: " + message); 
//		}