Code example for Handler

Methods: sendEmptyMessage

0
		recaptchaHandler = recaptchaHandlerIn;
	} 
 
	public void notifyNeed() { 
		if (recaptchaHandler != null) {
			recaptchaHandler.sendEmptyMessage(1);
		} 
	} 
 
	public synchronized void waitForUser() { 
		try { 
			wait();
		} catch (InterruptedException e) {
			Log.w(cgSettings.tag, "searchThread is not waiting for user...");
		} 
	} 
 
	public void setChallenge(String challenge) {
		recaptchaChallenge = challenge;
	}