package com.android.contactlist;
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
public class showfriends extends ListActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
// Create an array of Strings, that will be put to our ListActivity
String[] mStrings =
new String[]{"Thomas Malmberg",
"Alexandra Törn",
"Nicklas Storm",
"Anna Överås",
"Ajden Nedzipovski"};
// Create an ArrayAdapter, that will actually make the Strings above appear in the ListView
this.setListAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, mStrings));
}
}