I am using the following line of code currently and it works fine. I have an array called somearray declared under strings.xml
ArrayAdapter<CharSequence> adapter_teh = ArrayAdapter.createFromResource(AttendActivity.this, R.array.somearray, android.R.layout.simple_spinner_item);
However, I now wish to use List<String> instead of R.array.somearray. Basically, I am now getting a List from an API call which needs to be populated to the adapter_teh instead of the hardcoded array in Strings.xml