In what format should i save the JSON data i get from a server in order to populate them later in a ListView ?
Is a 2 dimensional array enough or is there a better solution?
Every JSON Object is like :
{"id":"1","title":"London"}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Where do you want to save the data? If it’s in a preferences object then the JSON itself is a good option. Otherwise a
HashMapwould be appropriate, and much better than the two-dimensional array: faster, more logical, better suited.