ANDROID : how to get value stored in ArrayList<HashMap<key,value>>?
        Posted  
        
            by 
                Roshni Kyada
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Roshni Kyada
        
        
        
        Published on 2012-06-29T09:05:43Z
        Indexed on 
            2012/06/29
            9:15 UTC
        
        
        Read the original article
        Hit count: 285
        
I have ArrayList>. At another activity i want to access all values stored in ArrayList>.
I tried following code.
ArrayList<HashMap<String, String>> mylist = new ArrayList<HashMap<String, String>>();
for(Hashmap<String, String> map: mylist) {
    for(Entry<String, String> mapEntry: map) {
        String key = mapEntry.getKey();
        String value = mapEntry.getValue();
    }
}
but it shows an error at for(Entry mapEntry: map) that it only interate over Array.
© Stack Overflow or respective owner