Thread: Android CMS
View Single Post
Old April 17th, 2012, 04:51 PM   #2 (permalink)
GeorgeN
Junior Member
 
Join Date: Apr 2012
Location: London
Posts: 92
 
Device(s): ZTE Skate, Ainol Novo7 Aurora
Carrier: Not Provided

Thanks: 2
Thanked 20 Times in 19 Posts
Default

Are you sure HttpResponse.toString() gets the data returned by the server? I would expect it to just give you some mangled object name - try printing the value and seeing what you get in logcat:
Code:
Log.d("CMS",response.toString());
I suspect you will need some extra code that does something like this:
Code:
HttpEntity entity = response.getEntity();
InputStream is = entity.getContent();
And then you can read your data from the InputStream object.

-George
GeorgeN is offline  
Reply With Quote