How would you go about to bind a JSONArray to an adapter, the adapter will be used to bind data to a spinner.
Of course I could iterate over the strings in the JSONArray and add 'em to a String array, but that seems cumbersome.
How would you go about to bind a JSONArray to an adapter, the adapter will be used to bind data to a spinner.
Of course I could iterate over the strings in the JSONArray and add 'em to a String array, but that seems cumbersome.
Create your own adapter class, extending BaseAdapter
, that adapts your JSON data according to whatever rules you feel are appropriate. The built-in adapter classes are not well-suited for JSON data.