Hi everybody, I'm a beginner and I need your help for my app

.
I would like to make a listview with items and icons, I found and made some code for it (I post only the interesting part, no import, etc.):
My main Layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>The layout for one item of my list
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/option_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/option_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
</LinearLayout>The values:
<resources>
<string-array name="noms">
<item>Arizona</item>
<item>Californie</item>
<item>Colorado</item>
<item>Nevada</item>
<item>Nouveau Mexique</item>
<item>Utah</item>
<item>Wyoming</item>
</string-array>
<array name="icones">
<item>@drawable/flag_arizona</item>
<item>@drawable/flag_californie</item>
<item>@drawable/flag_colorado</item>
<item>@drawable/flag_nevada</item>
<item>@drawable/flag_nouveau_mexique</item>
<item>@drawable/flag_utah</item>
<item>@drawable/flag_wyoming</item>
</array>
</resources>My main class:
public class sg_menu extends ListActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.sg_menu);
Context ctx = getApplicationContext();
Resources res = ctx.getResources();
String[] options = res.getStringArray(R.array.noms);
TypedArray icons = res.obtainTypedArray(R.array.icones);
setListAdapter(new ImageAndTextAdapter(ctx, R.layout.sg_list,
options, icons));
}
}And the adapter class
public class ImageAndTextAdapter extends ArrayAdapter<String> {
private LayoutInflater mInflater;
private String[] mStrings;
private TypedArray mIcons;
private int mViewResourceId;
public ImageAndTextAdapter(Context ctx, int viewResourceId,
String[] strings, TypedArray icons) {
super(ctx, viewResourceId, strings);
mInflater = (LayoutInflater)ctx.getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
mStrings = strings;
mIcons = icons;
mViewResourceId = viewResourceId;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
convertView = mInflater.inflate(mViewResourceId, null);
ImageView iv = (ImageView)convertView.findViewById(R.id.option_icon);
iv.setImageDrawable(mIcons.getDrawable(position));
TextView tv = (TextView)convertView.findViewById(R.id.option_text);
tv.setText(mStrings[position]);
return convertView;
}How can I change to another activity when I click on list item. In a best way, I would like to go on activity automaticaly depending on the item I clicked. In 2 words:
Click on item "Arizona" -> go to activity named "arizona.xml"
I don't want to use manualy the "if" for each item (because of quantity!)
Sorry for my bad English

and thank you very much !
EDIT: oops, I think I'm on the wrong section, please can you replace my topic on the dev section?