Code example for Vector

Methods: addAll

0
import android.widget.ListAdapter; 
import android.widget.TextView; 
 
public class ServiceAdapter implements ListAdapter
{ 
	private Vector<WebService> registeredServices = new Vector<WebService>();
	 
	private PackageManager pm;
	private Vector<DataSetObserver> observers = new Vector<DataSetObserver>();
	 
	 
	public ServiceAdapter(PackageManager pm,Vector<WebService> registeredServices)
	{ 
		this.pm=pm;
		this.registeredServices.addAll(registeredServices);
	} 
	 
	public ServiceAdapter(PackageManager pm)
	{ 
		this.pm=pm;
	}