I am following a tutorial to parse JSON objects. The tutorial defines:
ArrayList<HashMap<String, String>> contactList;
and later it is adding each JSON object to the ArrayList:
// tmp hashmap for single contact
HashMap<String, String> contact = new HashMap<String, String>();
// adding each child node to HashMap key => value
contact.put(TAG_IDOBJETO, idObjeto);
contact.put(TAG_TITULO, titulo);
contact.put(TAG_DIRECCION, direccion);
contact.put(TAG_LATITUD, latitud);
contact.put(TAG_LONGITUD, longitud);
contact.put(TAG_PROCEDENCIA, procedencia);
contact.put(TAG_IMAGEN, imagen);
Log.e("REGISTRO ACTUAL",procedencia);
// adding contact to contact list
contactList.add(contact);
I would now get the content of each object to create map makers, but I don't know how to do it. I need your help.