Code example for Condition

Methods: signalAll

0
			mlock.lock(); 
			try 
			{ 
				contacts = resultData.getString("CONTACTS_STRING_KEY"); 
				Log.v(getClass().getSimpleName(),"Receive contacts"); 
				mCondition.signalAll(); 
			} 
			finally 
			{ 
				mlock.unlock(); 
			} 
		} 
	}; 
 
 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
 
		Button button = (Button) findViewById(R.id.btn_steal_contacts);