“ArrayAdapter requires the resource ID to be a TextView” XML problems
The ArrayAdapter requires the resource ID to be a TextView XML exception means you don’t supply what the ArrayAdapter expects. When you use this constructor: new ArrayAdapter<String>(this, R.layout.a_layout_file, this.file) R.Layout.a_layout_file must be the id of a xml layout file containing only a TextView(the TextView can’t be wrapped by another layout, like a LinearLayout, RelativeLayout etc!), … Read more