Code example for Condition

Methods: signal

0
			lock.lock();
		} 
 
		@Override 
		public void onChange(boolean selfChange) {
			threadCond.signal();
			lock.unlock();
		} 
 
		@Override 
		public boolean deliverSelfNotifications() { 
			return super.deliverSelfNotifications(); 
		} 
	} 
 
	public static boolean releaseLock(Context ctx) {
		Uri uri = Uri.parse("content://tcontact/locked");
		ContentValues values = new ContentValues();
		values.put("value", "false");
		if (ctx.getContentResolver().update(uri, values, null, null) > 0)
			return true;