1

JSONArray to Spinner

view story
linux-howto

http://stackoverflow.com – I have a problem. I don't set JSONArray to Spinner. My JSON look ["category1","category2","category3"] How to get this JSONArray to spinner? I don't know if my code is well public class Main extends Activity { String urlCat = "http://tvapp.pcrevue.sk/categories.json"; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); JSONArray jsonArray = getJSONArrayFromUrl(urlCat); final ActionBar actionBar = getActionBar(); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST); actionBar.setDisplayShowTitleEnabled(false); (HowTos)