I want to retrieve a Dictionary> data from a server into an arraylist to populate it in a listview in android. I have done the connection to the server and what the response is in format:{"Key":["value1","value2"],"key":["value1",value2"]}. Thanks for any help you can provide.
1 Answer
Try using AbstractMap
And store that in an arrayist as follows...
List<Map.Entry<String, Object>> myArrayList = new ArrayList<Map.Entry<String, Object>>();
So now you have an arraylist of key value mappings which you can populate and use in your list view
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results.