Reputation: 85
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.
Upvotes: 0
Views: 455
Reputation: 6709
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
Upvotes: 1