I have a string array in strings.xml as detailed below:
First
Another solution:
Resources res = getResources(); TypedArray entriesTypedArray = res.obtainTypedArray(R.array.spinerArray); ArrayList entriesName = new ArrayList(); TypedValue v1 = new TypedValue(); for (int i1=0; i1