packageapp.elbauldelprogramador.adapters2;importjava.util.ArrayList;importandroid.app.ListActivity;importandroid.os.Bundle;publicclassAdaptadores2ActivityextendsListActivity{/** Called when the activity is first created. */@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.main);ArrayList<versionesubuntu>versiones=newArrayList<versionesubuntu>();versiones.add(newVersionesUbuntu("Lucid Lynx","10.4 LTS",R.drawable.lucid));versiones.add(newVersionesUbuntu("Maverick Meerkat","10.10",R.drawable.u1010));versiones.add(newVersionesUbuntu("Natty Narwhal","11.04",R.drawable.natty));versiones.add(newVersionesUbuntu("Oneiric Ocelot","11.10",R.drawable.ocelot));VersionesUbuntuAdapteradaptador=newVersionesUbuntuAdapter(Adaptadores2Activity.this,versiones);setListAdapter(adaptador);}}