Code example for BlockingQueue

Methods: add

0
        p.writeString(lifeEvent);
        return p;
    } 
 
    private void sendEvent(Parcel evt) {
        toChild.add(evt);
    } 
	 
    @Override public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);        
             
        copyBinary(); 
        uiHandler = new Handler();
        
        condStartHelper(); 
        sendEvent(newLifeCycleEvent(this, "create"));
 
        setupButtonHandler(R.id.button1);
        setupButtonHandler(R.id.button2);