0

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.

3
  • 1
    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. Commented Jan 7, 2014 at 23:32
  • Thnx for your response. I don't ask for code. I ask for the implementation mechanism or the big picture to understand. Should i use json mechanism or something else. Can you help please? thnx again. Commented Jan 7, 2014 at 23:39
  • I'd most certainly use JSON from the server-side and Google's Gson library within the app. Commented Jan 9, 2014 at 2:00

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.