hi,
how do i Parse this URL?"
http://208.109.186.98:8080/YellowPage/YellowPage/yelowpage.json"
I have used this code below but i keep getting Null Pointer Exception.:
ConnectionRequest cr = new ConnectionRequest()
{
protected void readResponse(InputStream is) throws IOException
{
JSONParser p = new JSONParser();
Hashtable h = p.parse(new InputStreamReader(is));
Hashtable<Object, Hashtable<String, String>> todoHash = (Hashtable<Object, Hashtable<String, String>>)h.get("");
Container tasksContainer = findContainer(c.getParent());
for(Hashtable<String, String> values : todoHash.values())
{
//
String photoURL = values.get("name");
String title = values.get("facebook");
System.out.println(photoURL+"::"+title);
}
}
};
InfiniteProgress i = new InfiniteProgress();
Dialog blocking = i.showInifiniteBlocking();
cr.setDisposeOnCompletion(blocking);
cr.setPost(false);
cr.setUrl("
http://208.109.186.98:8080/YellowPage/YellowPage/yelowpage.json");
NetworkManager.getInstance().addToQueue(cr);
how do i make this work?
Michael