How to Link List to ArrayAdapter

1. Create a list called myList.

2. Create an ArrayAdapter.

3. In MainActivity.java, add the line below to the onCreate method. This is linked to a list named myList.

myArrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myList);

4. Compile and test!

Resource: