This is the code I\'m working on:
private final static String SERVICE_URI = \"http://restwebservice.com/test/Service.svc\";
StringEntity entity;
String
One of the most popular tutirials on list views which may help you:
-Ravi's blog
Steps to follow after parsing your json:
1. Map your json objects to pojo.
2. Store your pojo in an array list if many are there.
3. Create a list view with a custom adapter.
4. update your listview with answer from the pojo's that you have mapped with
notifyDatasetChanged
You can use jackson library to parse json with one line of code.
//1. Convert Java object to JSON format
ObjectMapper mapper = new ObjectMapper();
mapper.writeValue(new File("c:\\user.json"), user);
//2. Convert JSON to Java object
ObjectMapper mapper = new ObjectMapper();
User user = mapper.readValue(new File("c:\\user.json"), User.class);
(follow this link for more on object mapping tutorial)