Change to
setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, fileList ));
Look at the constructors of ArrayAdapter. Use the one that suits you
http://developer.android.com/reference/android/widget/ArrayAdapter.html
Example:
String[] GENRES = new String[] {
"Action", "Adventure", "Animation", "Children", "Comedy",
"Documentary", "Drama",
"Foreign", "History", "Independent", "Romance", "Sci-Fi",
"Television", "Thriller"
};
setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, GENRES));
GENRES
is string array. android.R.layout.simple_list_item_1
is the layout for your list. this
refers to the activity context.
Android looks for a resource with id mentioned. If it does not find you get ResourceNotFoundException