super.onCreate(icicle); mTests = tests(); String[] labels = new String[mTests.length]; for (int i=0; i<mTests.length; i++) { labels[i] = mTests[i].name; } setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, labels));
Test t = mTests[position]; Log.d(tag(), "Test: " + t.name); t.run();