/** Called when the activity is first created. */
@Override publicvoid onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); //setContentView(R.layout.mainb);
//above line: setContentView must be commented
showList(); }
publicvoid showList() { list=newArrayList<String>(); list.add("a"); list.add("b"); list.add("c"); list.add("d");
ArrayAdapter<String> la =new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,list); //ArrayAdapter la = new ArrayAdapter(this, R.layout.list_row, list);
privateList<String> items =null; /** Called when the activity is first created. */
@Override publicvoid onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); //setContentView(R.layout.main); //must not do it !!
fill(newFile("/").listFiles(), true); }
@Override protectedvoid onListItemClick(ListView l,View v,intposition,longid){ int selectionRowID =position;//(int) getSelectionRowID();