Új hozzászólás Aktív témák
-
pittbaba
aktív tag
Na még valami:
ListView-et akarok kitölteni az async task onpostexecute metódusában, de a setListAdapter metódust elvileg nincs definiálva. Több helyen is így láttam a példákat, nálam miért nem működik?
Így néz ki a dolog egyébként:JSONObject jsonobj = new JSONObject(result);
next_starts = jsonobj.getJSONArray("next_starts");
for(int i = 0; i < next_starts.length(); i++){
JSONObject c = next_starts.getJSONObject(i);
String id = c.getString("departure_time");
//Log.v("TAG","INDULÁS:"+id);
HashMap<String, String> map = new HashMap<String, String>();
JSONObject e = next_starts.getJSONObject(i);
map.put("id", String.valueOf(i));
map.put("start_time", "Codename: " + e.getString("departure_time"));
//map.put("cc", "Country Code: " + e.getString("countrycode"));
mylist.add(map);
}
ListAdapter adapter = new SimpleAdapter(callerActivity, mylist , R.layout.start_times_listview,
new String[] { "start_time"},
new int[] { R.id.start_times});
setListAdapter(adapter);
Log.v("TAG","JSON FELDOLGOZVA");PH Konfigom: Gigabyte GA-H97M-D3H, i7 4790K,GTX 960, Seasonic SS-620GM
Új hozzászólás Aktív témák
- Apple iPhone 14 128gb Midnight + Garancia
- Apple iPhone 12 Pro Max, Pacific Blue, 128Gb, független 86% akku
- Szuper Akció:Igényeseknek-Exkluziv-12Genes-Core i7-Dell Latitude 5430-Harmad áron-garival!!!
- Western Digital 6TB NasWare 3.0 WD60EFRX-68l0bn1 keveset használt eladó.
- ÚJ Under Armour HOVR Machina 2 futócipő,sportcipő 44-es méretben eladó
Állásajánlatok
Cég: Promenade Publishing House Kft.
Város: Budapest
Cég: Ozeki Kft.
Város: Debrecen