Code example for LinkedList

Methods: add, contains

0
		progressDialog.setMessage(value);
	} 
	 
	public void registerManagedReceiver(BaseBroadcastReceiver receiver)
	{ 
		if(receiver==null || managedReceivers.contains(receiver)) return;
		managedReceivers.add(receiver);
		registerReceiver(receiver, receiver.getIntentFilter());
	} 
	 
	public void registerManagedReceiver(BaseBroadcastReceiver receiver,String broadcastPermission,Handler scheduler)
	{ 
		if(receiver==null || managedReceivers.contains(receiver)) return;
		managedReceivers.add(receiver);
		registerReceiver(receiver, receiver.getIntentFilter(), broadcastPermission, scheduler);
	} 
	 
	//覆盖unregisterReceiver来确保管理状态 
	@Override 
	public void unregisterReceiver(BroadcastReceiver receiver) {
		super.unregisterReceiver(receiver);