Code example for JsResult

Methods: confirm

0
 
			// This is needed to end the alert state. 
			result.confirm();
 
			return true; 
		} 
 
		public boolean onJsPrompt( 
			WebView view,
			String url,
			String message,
			String defaultValue,
			JsPromptResult result)
		{ 
//			Log.i("@@@ MoSync", "onJsPrompt: " + message); 
 
			// Store the message in a data object. 
			int urlData = MoSyncThread.getInstance().createDataObject(
				0, // Zero makes the system create a new placeholder. 
				message.getBytes() // Data content.
				);